#[non_exhaustive]pub struct SecondaryBootDisk {
pub mode: Mode,
pub disk_image: String,
}Expand description
SecondaryBootDisk represents a persistent disk attached to a node with special configurations based on its mode.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.mode: ModeDisk mode (container image cache, etc.)
disk_image: StringFully-qualified resource ID for an existing disk image.
Implementations§
Source§impl SecondaryBootDisk
impl SecondaryBootDisk
Sourcepub fn set_disk_image<T: Into<String>>(self, v: T) -> Self
pub fn set_disk_image<T: Into<String>>(self, v: T) -> Self
Sets the value of disk_image.
Trait Implementations§
Source§impl Clone for SecondaryBootDisk
impl Clone for SecondaryBootDisk
Source§fn clone(&self) -> SecondaryBootDisk
fn clone(&self) -> SecondaryBootDisk
Returns a copy of the value. Read more
1.0.0 · 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 SecondaryBootDisk
impl Debug for SecondaryBootDisk
Source§impl Default for SecondaryBootDisk
impl Default for SecondaryBootDisk
Source§fn default() -> SecondaryBootDisk
fn default() -> SecondaryBootDisk
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SecondaryBootDiskwhere
SecondaryBootDisk: Default,
impl<'de> Deserialize<'de> for SecondaryBootDiskwhere
SecondaryBootDisk: Default,
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 Message for SecondaryBootDisk
impl Message for SecondaryBootDisk
Source§impl PartialEq for SecondaryBootDisk
impl PartialEq for SecondaryBootDisk
Source§impl Serialize for SecondaryBootDisk
impl Serialize for SecondaryBootDisk
impl StructuralPartialEq for SecondaryBootDisk
Auto Trait Implementations§
impl Freeze for SecondaryBootDisk
impl RefUnwindSafe for SecondaryBootDisk
impl Send for SecondaryBootDisk
impl Sync for SecondaryBootDisk
impl Unpin for SecondaryBootDisk
impl UnwindSafe for SecondaryBootDisk
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