#[non_exhaustive]pub struct BootDiskProfile {
pub swap_size: Option<SwapSize>,
/* private fields */
}Expand description
Swap on the node’s boot disk.
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.swap_size: Option<SwapSize>Optional. Specifies the size of the swap space. If omitted, GKE determines an optimal size based on node memory.
Implementations§
Source§impl BootDiskProfile
impl BootDiskProfile
pub fn new() -> Self
Sourcepub fn set_swap_size<T: Into<Option<SwapSize>>>(self, v: T) -> Self
pub fn set_swap_size<T: Into<Option<SwapSize>>>(self, v: T) -> Self
Sourcepub fn swap_size_gib(&self) -> Option<&i64>
pub fn swap_size_gib(&self) -> Option<&i64>
The value of swap_size
if it holds a SwapSizeGib, None if the field is not set or
holds a different branch.
Sourcepub fn set_swap_size_gib<T: Into<i64>>(self, v: T) -> Self
pub fn set_swap_size_gib<T: Into<i64>>(self, v: T) -> Self
Sourcepub fn swap_size_percent(&self) -> Option<&i32>
pub fn swap_size_percent(&self) -> Option<&i32>
The value of swap_size
if it holds a SwapSizePercent, None if the field is not set or
holds a different branch.
Sourcepub fn set_swap_size_percent<T: Into<i32>>(self, v: T) -> Self
pub fn set_swap_size_percent<T: Into<i32>>(self, v: T) -> Self
Trait Implementations§
Source§impl Clone for BootDiskProfile
impl Clone for BootDiskProfile
Source§fn clone(&self) -> BootDiskProfile
fn clone(&self) -> BootDiskProfile
Returns a duplicate 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 BootDiskProfile
impl Debug for BootDiskProfile
Source§impl Default for BootDiskProfile
impl Default for BootDiskProfile
Source§fn default() -> BootDiskProfile
fn default() -> BootDiskProfile
Returns the “default value” for a type. Read more
Source§impl Message for BootDiskProfile
impl Message for BootDiskProfile
Source§impl PartialEq for BootDiskProfile
impl PartialEq for BootDiskProfile
impl StructuralPartialEq for BootDiskProfile
Auto Trait Implementations§
impl Freeze for BootDiskProfile
impl RefUnwindSafe for BootDiskProfile
impl Send for BootDiskProfile
impl Sync for BootDiskProfile
impl Unpin for BootDiskProfile
impl UnwindSafe for BootDiskProfile
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