pub struct SavedDisk {
pub architecture: Option<String>,
pub kind: Option<String>,
pub source_disk: Option<String>,
pub storage_bytes: Option<i64>,
pub storage_bytes_status: Option<String>,
}
Expand description
An instance-attached disk resource.
Fields§
§architecture: Option<String>
[Output Only] The architecture of the attached disk. Check the Architecture enum for the list of possible values.
kind: Option<String>
[Output Only] Type of the resource. Always compute#savedDisk for attached disks.
source_disk: Option<String>
Specifies a URL of the disk attached to the source instance.
storage_bytes: Option<i64>
[Output Only] Size of the individual disk snapshot used by this machine image.
storage_bytes_status: Option<String>
[Output Only] An indicator whether storageBytes is in a stable state or it is being adjusted as a result of shared storage reallocation. This status can either be UPDATING, meaning the size of the snapshot is being updated, or UP_TO_DATE, meaning the size of the snapshot is up-to-date. Check the StorageBytesStatus enum for the list of possible values.
Implementations§
source§impl SavedDisk
impl SavedDisk
sourcepub fn architecture(&self) -> &str
pub fn architecture(&self) -> &str
Returns the value of architecture
, or the default value if architecture
is unset.
sourcepub fn storage_bytes(&self) -> i64
pub fn storage_bytes(&self) -> i64
Returns the value of storage_bytes
, or the default value if storage_bytes
is unset.
sourcepub fn source_disk(&self) -> &str
pub fn source_disk(&self) -> &str
Returns the value of source_disk
, or the default value if source_disk
is unset.
sourcepub fn storage_bytes_status(&self) -> &str
pub fn storage_bytes_status(&self) -> &str
Returns the value of storage_bytes_status
, or the default value if storage_bytes_status
is unset.
Trait Implementations§
source§impl Message for SavedDisk
impl Message for SavedDisk
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
.source§impl PartialEq for SavedDisk
impl PartialEq for SavedDisk
impl StructuralPartialEq for SavedDisk
Auto Trait Implementations§
impl Freeze for SavedDisk
impl RefUnwindSafe for SavedDisk
impl Send for SavedDisk
impl Sync for SavedDisk
impl Unpin for SavedDisk
impl UnwindSafe for SavedDisk
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request