#[non_exhaustive]pub struct PerformDiskShrinkContext {
pub target_size_gb: i64,
/* private fields */
}
Expand description
Perform disk shrink context.
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.target_size_gb: i64
The target disk shrink size in GigaBytes.
Implementations§
Source§impl PerformDiskShrinkContext
impl PerformDiskShrinkContext
pub fn new() -> Self
Sourcepub fn set_target_size_gb<T: Into<i64>>(self, v: T) -> Self
pub fn set_target_size_gb<T: Into<i64>>(self, v: T) -> Self
Sets the value of target_size_gb.
Trait Implementations§
Source§impl Clone for PerformDiskShrinkContext
impl Clone for PerformDiskShrinkContext
Source§fn clone(&self) -> PerformDiskShrinkContext
fn clone(&self) -> PerformDiskShrinkContext
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 PerformDiskShrinkContext
impl Debug for PerformDiskShrinkContext
Source§impl Default for PerformDiskShrinkContext
impl Default for PerformDiskShrinkContext
Source§fn default() -> PerformDiskShrinkContext
fn default() -> PerformDiskShrinkContext
Returns the “default value” for a type. Read more
Source§impl Message for PerformDiskShrinkContext
impl Message for PerformDiskShrinkContext
Source§impl PartialEq for PerformDiskShrinkContext
impl PartialEq for PerformDiskShrinkContext
impl StructuralPartialEq for PerformDiskShrinkContext
Auto Trait Implementations§
impl Freeze for PerformDiskShrinkContext
impl RefUnwindSafe for PerformDiskShrinkContext
impl Send for PerformDiskShrinkContext
impl Sync for PerformDiskShrinkContext
impl Unpin for PerformDiskShrinkContext
impl UnwindSafe for PerformDiskShrinkContext
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