pub struct LayerDescriptor {
pub digest: String,
pub size: u64,
pub media_type: String,
pub conda_package: Option<CondaPackagePin>,
}Expand description
One OCI layer entry in a lockfile tool record.
Fields§
§digest: StringContent digest of the compressed layer blob (e.g. sha256:abc...).
size: u64§media_type: String§conda_package: Option<CondaPackagePin>Present only for factored_oci layers that correspond to a single conda package.
Implementations§
Trait Implementations§
Source§impl Clone for LayerDescriptor
impl Clone for LayerDescriptor
Source§fn clone(&self) -> LayerDescriptor
fn clone(&self) -> LayerDescriptor
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 LayerDescriptor
impl Debug for LayerDescriptor
Source§impl<'de> Deserialize<'de> for LayerDescriptor
impl<'de> Deserialize<'de> for LayerDescriptor
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for LayerDescriptor
impl PartialEq for LayerDescriptor
Source§impl Serialize for LayerDescriptor
impl Serialize for LayerDescriptor
impl Eq for LayerDescriptor
impl StructuralPartialEq for LayerDescriptor
Auto Trait Implementations§
impl Freeze for LayerDescriptor
impl RefUnwindSafe for LayerDescriptor
impl Send for LayerDescriptor
impl Sync for LayerDescriptor
impl Unpin for LayerDescriptor
impl UnsafeUnpin for LayerDescriptor
impl UnwindSafe for LayerDescriptor
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