pub struct Image {
pub id: Option<String>,
pub created: Option<String>,
pub name: String,
pub link: Option<Link>,
pub arch: Option<String>,
pub metadata: Option<HashMap<String, String>>,
}Fields§
§id: Option<String>§created: Option<String>§name: String§link: Option<Link>§arch: Option<String>§metadata: Option<HashMap<String, String>>Implementations§
Source§impl Image
impl Image
pub fn set_boot_image_iscsi_ready(&mut self)
pub fn add_metadata(&mut self, pairs: &[(&str, &str)])
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Image
impl<'de> Deserialize<'de> for Image
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Image, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Image, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<PatchImage> for Image
impl From<PatchImage> for Image
Source§fn from(patch: PatchImage) -> Image
fn from(patch: PatchImage) -> Image
Converts to this type from the input type.
Source§impl Into<PatchImage> for Image
impl Into<PatchImage> for Image
Source§fn into(self) -> PatchImage
fn into(self) -> PatchImage
Converts this type into the (usually inferred) input type.
Source§impl Serialize for Image
impl Serialize for Image
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for Image
impl RefUnwindSafe for Image
impl Send for Image
impl Sync for Image
impl Unpin for Image
impl UnsafeUnpin for Image
impl UnwindSafe for Image
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