pub struct PublicImage {
pub name: String,
pub description: String,
pub default_user: String,
pub root_device: String,
pub block_devices: Vec<PublicImageBlockDevice>,
pub architecture: i32,
pub platform: i32,
pub state: i32,
pub image_family: String,
pub family_current: bool,
}Expand description
One of the platform’s images, in one zone.
Fields§
§name: StringThe image’s resource name, zones/{zone}/images/{image}.
description: StringWhat the image holds.
default_user: StringThe account an instance launched from the image logs in as, unless the launch names another.
root_device: StringThe device name of the disk the image boots from.
block_devices: Vec<PublicImageBlockDevice>The image’s disks, each created for an instance launched from it.
architecture: i32The CPU architecture it boots on.
platform: i32Its operating system family.
state: i32Where it is in its lifecycle.
image_family: StringThe full name of the family the image belongs to,
//compute.origincloudapis.eu/imageFamilies/{image_family}; empty for
an image of none.
family_current: boolWhether image_family launches this image now.
Implementations§
Source§impl PublicImage
impl PublicImage
Sourcepub fn architecture(&self) -> Architecture
pub fn architecture(&self) -> Architecture
Returns the enum value of architecture, or the default if the field is set to an invalid enum value.
Sourcepub fn set_architecture(&mut self, value: Architecture)
pub fn set_architecture(&mut self, value: Architecture)
Sets architecture to the provided enum value.
Sourcepub fn platform(&self) -> Platform
pub fn platform(&self) -> Platform
Returns the enum value of platform, or the default if the field is set to an invalid enum value.
Sourcepub fn set_platform(&mut self, value: Platform)
pub fn set_platform(&mut self, value: Platform)
Sets platform to the provided enum value.
Trait Implementations§
Source§impl Clone for PublicImage
impl Clone for PublicImage
Source§impl Debug for PublicImage
impl Debug for PublicImage
Source§impl Default for PublicImage
impl Default for PublicImage
Source§impl<'de> Deserialize<'de> for PublicImage
impl<'de> Deserialize<'de> for PublicImage
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>,
Source§impl Message for PublicImage
impl Message for PublicImage
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self.