pub struct ImageMetadata {
pub architecture: Option<String>,
pub creation_date: Option<i64>,
pub expiry_date: Option<i64>,
pub properties: Option<HashMap<String, String>>,
pub templates: Option<HashMap<String, ImageMetadataTemplate>>,
}Expand description
ImageMetadata : ImageMetadata represents image metadata (used in image tarball)
Fields§
§architecture: Option<String>Architecture name
creation_date: Option<i64>Image creation data (as UNIX epoch)
expiry_date: Option<i64>Image expiry data (as UNIX epoch)
properties: Option<HashMap<String, String>>Descriptive properties
templates: Option<HashMap<String, ImageMetadataTemplate>>Template for files in the image
Implementations§
Source§impl ImageMetadata
impl ImageMetadata
Sourcepub fn new() -> ImageMetadata
pub fn new() -> ImageMetadata
ImageMetadata represents image metadata (used in image tarball)
Trait Implementations§
Source§impl Clone for ImageMetadata
impl Clone for ImageMetadata
Source§fn clone(&self) -> ImageMetadata
fn clone(&self) -> ImageMetadata
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 moreSource§impl Debug for ImageMetadata
impl Debug for ImageMetadata
Source§impl Default for ImageMetadata
impl Default for ImageMetadata
Source§fn default() -> ImageMetadata
fn default() -> ImageMetadata
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ImageMetadata
impl<'de> Deserialize<'de> for ImageMetadata
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 ImageMetadata
impl PartialEq for ImageMetadata
Source§fn eq(&self, other: &ImageMetadata) -> bool
fn eq(&self, other: &ImageMetadata) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ImageMetadata
impl Serialize for ImageMetadata
impl StructuralPartialEq for ImageMetadata
Auto Trait Implementations§
impl Freeze for ImageMetadata
impl RefUnwindSafe for ImageMetadata
impl Send for ImageMetadata
impl Sync for ImageMetadata
impl Unpin for ImageMetadata
impl UnsafeUnpin for ImageMetadata
impl UnwindSafe for ImageMetadata
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