pub struct DriveUpdate {Show 15 fields
pub base: Option<ResourceUpdate>,
pub status_indicator: Option<StatusIndicator>,
pub indicator_led: Option<IndicatorLed>,
pub asset_tag: Option<String>,
pub location: Option<Vec<LocationUpdate>>,
pub hotspare_type: Option<HotspareType>,
pub physical_location: Option<LocationUpdate>,
pub hotspare_replacement_mode: Option<HotspareReplacementModeType>,
pub write_cache_enabled: Option<Boolean>,
pub ready_to_remove: Option<Boolean>,
pub location_indicator_active: Option<Boolean>,
pub configuration_lock: Option<ConfigurationLock>,
pub block_security_id_enabled: Option<Boolean>,
pub target_configuration_lock_level: Option<TargetConfigurationLockLevel>,
pub nvme: Option<NvmeUpdate>,
}Expand description
Update struct corresponding to Drive
Fields§
§base: Option<ResourceUpdate>§status_indicator: Option<StatusIndicator>§indicator_led: Option<IndicatorLed>§asset_tag: Option<String>§location: Option<Vec<LocationUpdate>>§hotspare_type: Option<HotspareType>§physical_location: Option<LocationUpdate>§hotspare_replacement_mode: Option<HotspareReplacementModeType>§write_cache_enabled: Option<Boolean>§ready_to_remove: Option<Boolean>§location_indicator_active: Option<Boolean>§configuration_lock: Option<ConfigurationLock>§block_security_id_enabled: Option<Boolean>§target_configuration_lock_level: Option<TargetConfigurationLockLevel>§nvme: Option<NvmeUpdate>Implementations§
Source§impl DriveUpdate
impl DriveUpdate
pub fn builder() -> Self
pub const fn build(self) -> Self
pub fn with_base(self, v: ResourceUpdate) -> Self
pub fn with_status_indicator(self, v: StatusIndicator) -> Self
pub fn with_indicator_led(self, v: IndicatorLed) -> Self
pub fn with_asset_tag(self, v: String) -> Self
pub fn with_location(self, v: Vec<LocationUpdate>) -> Self
pub fn with_hotspare_type(self, v: HotspareType) -> Self
pub fn with_physical_location(self, v: LocationUpdate) -> Self
pub fn with_hotspare_replacement_mode( self, v: HotspareReplacementModeType, ) -> Self
pub fn with_write_cache_enabled(self, v: Boolean) -> Self
pub fn with_ready_to_remove(self, v: Boolean) -> Self
pub fn with_location_indicator_active(self, v: Boolean) -> Self
pub fn with_configuration_lock(self, v: ConfigurationLock) -> Self
pub fn with_block_security_id_enabled(self, v: Boolean) -> Self
pub fn with_target_configuration_lock_level( self, v: TargetConfigurationLockLevel, ) -> Self
pub fn with_nvme(self, v: NvmeUpdate) -> Self
Trait Implementations§
Source§impl Debug for DriveUpdate
impl Debug for DriveUpdate
Source§impl Default for DriveUpdate
impl Default for DriveUpdate
Source§fn default() -> DriveUpdate
fn default() -> DriveUpdate
Returns the “default value” for a type. Read more
Source§impl Serialize for DriveUpdate
impl Serialize for DriveUpdate
Auto Trait Implementations§
impl Freeze for DriveUpdate
impl RefUnwindSafe for DriveUpdate
impl Send for DriveUpdate
impl Sync for DriveUpdate
impl Unpin for DriveUpdate
impl UnsafeUnpin for DriveUpdate
impl UnwindSafe for DriveUpdate
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