pub struct OciLayer { /* private fields */ }Expand description
OCI layer metadata. This type does not extract or decompress layers.
Implementations§
Source§impl OciLayer
impl OciLayer
Sourcepub fn new(
media_type: LayerMediaType,
digest: OciDigest,
size: LayerSize,
) -> Self
pub fn new( media_type: LayerMediaType, digest: OciDigest, size: LayerSize, ) -> Self
Creates layer metadata.
Sourcepub fn with_diff_id(self, diff_id: DiffId) -> Self
pub fn with_diff_id(self, diff_id: DiffId) -> Self
Adds a diff ID.
Sourcepub const fn media_type(&self) -> &LayerMediaType
pub const fn media_type(&self) -> &LayerMediaType
Returns the layer media type.
Sourcepub const fn compression(&self) -> LayerCompression
pub const fn compression(&self) -> LayerCompression
Returns the compression marker.
Trait Implementations§
impl Eq for OciLayer
impl StructuralPartialEq for OciLayer
Auto Trait Implementations§
impl Freeze for OciLayer
impl RefUnwindSafe for OciLayer
impl Send for OciLayer
impl Sync for OciLayer
impl Unpin for OciLayer
impl UnsafeUnpin for OciLayer
impl UnwindSafe for OciLayer
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