#[non_exhaustive]pub struct BundledLocalSsds {
pub default_interface: Option<String>,
pub partition_count: Option<i32>,
/* private fields */
}Available on crate feature
machine-types only.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.default_interface: Option<String>The default disk interface if the interface is not specified.
partition_count: Option<i32>The number of partitions.
Implementations§
Source§impl BundledLocalSsds
impl BundledLocalSsds
pub fn new() -> Self
Sourcepub fn set_default_interface<T>(self, v: T) -> Self
pub fn set_default_interface<T>(self, v: T) -> Self
Sets the value of default_interface.
§Example
ⓘ
let x = BundledLocalSsds::new().set_default_interface("example");Sourcepub fn set_or_clear_default_interface<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_default_interface<T>(self, v: Option<T>) -> Self
Sets or clears the value of default_interface.
§Example
ⓘ
let x = BundledLocalSsds::new().set_or_clear_default_interface(Some("example"));
let x = BundledLocalSsds::new().set_or_clear_default_interface(None::<String>);Sourcepub fn set_partition_count<T>(self, v: T) -> Self
pub fn set_partition_count<T>(self, v: T) -> Self
Sets the value of partition_count.
§Example
ⓘ
let x = BundledLocalSsds::new().set_partition_count(42);Sourcepub fn set_or_clear_partition_count<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_partition_count<T>(self, v: Option<T>) -> Self
Sets or clears the value of partition_count.
§Example
ⓘ
let x = BundledLocalSsds::new().set_or_clear_partition_count(Some(42));
let x = BundledLocalSsds::new().set_or_clear_partition_count(None::<i32>);Trait Implementations§
Source§impl Clone for BundledLocalSsds
impl Clone for BundledLocalSsds
Source§fn clone(&self) -> BundledLocalSsds
fn clone(&self) -> BundledLocalSsds
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 BundledLocalSsds
impl Debug for BundledLocalSsds
Source§impl Default for BundledLocalSsds
impl Default for BundledLocalSsds
Source§fn default() -> BundledLocalSsds
fn default() -> BundledLocalSsds
Returns the “default value” for a type. Read more
Source§impl Message for BundledLocalSsds
impl Message for BundledLocalSsds
Source§impl PartialEq for BundledLocalSsds
impl PartialEq for BundledLocalSsds
impl StructuralPartialEq for BundledLocalSsds
Auto Trait Implementations§
impl Freeze for BundledLocalSsds
impl RefUnwindSafe for BundledLocalSsds
impl Send for BundledLocalSsds
impl Sync for BundledLocalSsds
impl Unpin for BundledLocalSsds
impl UnsafeUnpin for BundledLocalSsds
impl UnwindSafe for BundledLocalSsds
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