pub struct OciManifest { /* private fields */ }Expand description
OCI image manifest primitives.
Implementations§
Source§impl OciManifest
impl OciManifest
Sourcepub fn new(config: OciDescriptor) -> OciManifest
pub fn new(config: OciDescriptor) -> OciManifest
Creates a manifest with a config descriptor.
Sourcepub fn with_layer(self, layer: OciDescriptor) -> OciManifest
pub fn with_layer(self, layer: OciDescriptor) -> OciManifest
Adds a layer descriptor.
Sourcepub fn with_subject(self, subject: OciDescriptor) -> OciManifest
pub fn with_subject(self, subject: OciDescriptor) -> OciManifest
Adds a subject descriptor.
Sourcepub fn with_annotation(self, annotation: Annotation) -> OciManifest
pub fn with_annotation(self, annotation: Annotation) -> OciManifest
Adds an annotation.
Sourcepub const fn schema_version(&self) -> SchemaVersion
pub const fn schema_version(&self) -> SchemaVersion
Returns the schema version.
Sourcepub const fn config(&self) -> &OciDescriptor
pub const fn config(&self) -> &OciDescriptor
Returns the config descriptor.
Sourcepub fn layers(&self) -> &[OciDescriptor]
pub fn layers(&self) -> &[OciDescriptor]
Returns layer descriptors.
Sourcepub const fn subject(&self) -> Option<&OciDescriptor>
pub const fn subject(&self) -> Option<&OciDescriptor>
Returns the optional subject descriptor.
Sourcepub fn annotations(&self) -> &[Annotation]
pub fn annotations(&self) -> &[Annotation]
Returns manifest annotations.
Trait Implementations§
Source§impl Clone for OciManifest
impl Clone for OciManifest
Source§fn clone(&self) -> OciManifest
fn clone(&self) -> OciManifest
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 OciManifest
impl Debug for OciManifest
Source§impl PartialEq for OciManifest
impl PartialEq for OciManifest
impl Eq for OciManifest
impl StructuralPartialEq for OciManifest
Auto Trait Implementations§
impl Freeze for OciManifest
impl RefUnwindSafe for OciManifest
impl Send for OciManifest
impl Sync for OciManifest
impl Unpin for OciManifest
impl UnsafeUnpin for OciManifest
impl UnwindSafe for OciManifest
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