pub struct LayerMetadata {
pub id: String,
pub parent: Option<String>,
pub diff_size: Option<u64>,
pub compressed_size: Option<u64>,
}Expand description
Metadata about a layer from layers.json.
Fields§
§id: StringLayer storage ID.
parent: Option<String>Parent layer ID (if not base layer).
diff_size: Option<u64>Uncompressed diff size in bytes.
compressed_size: Option<u64>Compressed size in bytes.
Trait Implementations§
Source§impl Clone for LayerMetadata
impl Clone for LayerMetadata
Source§fn clone(&self) -> LayerMetadata
fn clone(&self) -> LayerMetadata
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for LayerMetadata
impl RefUnwindSafe for LayerMetadata
impl Send for LayerMetadata
impl Sync for LayerMetadata
impl Unpin for LayerMetadata
impl UnsafeUnpin for LayerMetadata
impl UnwindSafe for LayerMetadata
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