pub struct VolumeAttachment {
pub name: String,
pub volume: String,
pub device: String,
pub boot: bool,
pub state: i32,
}Expand description
A volume an instance holds.
Fields§
§name: StringThe attachment’s resource name.
volume: StringThe volume’s full name, in the instance’s project and zone.
device: StringThe slot the volume’s disk takes on the instance, vda to vdz but
vdc; the first free one when left empty. It is a hint at most, not
the name the guest gives the disk: a guest names its disks in the
order it finds them, so a disk attached to a running instance often
gets another name. In the guest, the disk’s serial is the volume’s id,
which a Linux guest links as /dev/disk/by-id/virtio-<volume-id>.
boot: boolWhether this is the instance’s boot volume, which was attached at launch and can’t be detached.
state: i32Where the attachment is.
Implementations§
Trait Implementations§
Source§impl Clone for VolumeAttachment
impl Clone for VolumeAttachment
Source§impl Debug for VolumeAttachment
impl Debug for VolumeAttachment
Source§impl Default for VolumeAttachment
impl Default for VolumeAttachment
Source§impl<'de> Deserialize<'de> for VolumeAttachment
impl<'de> Deserialize<'de> for VolumeAttachment
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
impl Eq for VolumeAttachment
Source§impl Hash for VolumeAttachment
impl Hash for VolumeAttachment
Source§impl Message for VolumeAttachment
impl Message for VolumeAttachment
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
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,
Encodes the message to a buffer. Read more
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message to a newly allocated buffer.
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,
Encodes the message with a length-delimiter to a buffer. Read more
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,
Encodes the message with a length-delimiter to a newly allocated buffer.
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes an instance of the message from a buffer. Read more
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,
Decodes a length-delimited instance of the message from the buffer.
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,
Decodes an instance of the message from a buffer, and merges it into
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,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self.Source§impl PartialEq for VolumeAttachment
impl PartialEq for VolumeAttachment
Source§impl Serialize for VolumeAttachment
impl Serialize for VolumeAttachment
impl StructuralPartialEq for VolumeAttachment
Auto Trait Implementations§
impl Forget for VolumeAttachment
impl Freeze for VolumeAttachment
impl Move for VolumeAttachment
impl RefUnwindSafe for VolumeAttachment
impl Send for VolumeAttachmentwhere
RawVecInner: Send,
impl Sync for VolumeAttachmentwhere
RawVecInner: Sync,
impl Unpin for VolumeAttachment
impl UnsafeUnpin for VolumeAttachment
impl UnwindSafe for VolumeAttachmentwhere
RawVecInner: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.