pub struct IndexManifest { /* private fields */ }Expand description
A platform-specific manifest reference in an OCI image index.
Implementations§
Source§impl IndexManifest
impl IndexManifest
Sourcepub fn with_platform(self, platform: OciPlatform) -> Self
pub fn with_platform(self, platform: OciPlatform) -> Self
Adds platform metadata.
Sourcepub fn with_annotation(self, annotation: Annotation) -> Self
pub fn with_annotation(self, annotation: Annotation) -> Self
Adds an annotation.
Sourcepub const fn descriptor(&self) -> &OciDescriptor
pub const fn descriptor(&self) -> &OciDescriptor
Returns the descriptor.
Sourcepub fn annotations(&self) -> &[Annotation]
pub fn annotations(&self) -> &[Annotation]
Returns annotations.
Trait Implementations§
Source§impl Clone for IndexManifest
impl Clone for IndexManifest
Source§fn clone(&self) -> IndexManifest
fn clone(&self) -> IndexManifest
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for IndexManifest
impl Debug for IndexManifest
Source§impl PartialEq for IndexManifest
impl PartialEq for IndexManifest
impl Eq for IndexManifest
impl StructuralPartialEq for IndexManifest
Auto Trait Implementations§
impl Freeze for IndexManifest
impl RefUnwindSafe for IndexManifest
impl Send for IndexManifest
impl Sync for IndexManifest
impl Unpin for IndexManifest
impl UnsafeUnpin for IndexManifest
impl UnwindSafe for IndexManifest
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more