Struct OciLayer
pub struct OciLayer { /* private fields */ }Expand description
OCI layer metadata. This type does not extract or decompress layers.
Implementations§
§impl OciLayer
impl OciLayer
pub fn new(
media_type: LayerMediaType,
digest: OciDigest,
size: LayerSize,
) -> OciLayer
pub fn new( media_type: LayerMediaType, digest: OciDigest, size: LayerSize, ) -> OciLayer
Creates layer metadata.
pub fn with_diff_id(self, diff_id: DiffId) -> OciLayer
pub fn with_diff_id(self, diff_id: DiffId) -> OciLayer
Adds a diff ID.
pub const fn media_type(&self) -> &LayerMediaType
pub const fn media_type(&self) -> &LayerMediaType
Returns the layer media type.
pub 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