Skip to main content

Drive

Struct Drive 

Source
pub struct Drive {
Show 50 fields pub odata_context: Option<Context>, pub odata_etag: Option<Etag>, pub odata_id: Id, pub odata_type: Type, pub actions: Option<Actions>, pub assembly: Option<IdRef>, pub asset_tag: Option<String>, pub block_size_bytes: Option<i64>, pub capable_speed_gbs: Option<f64>, pub capacity_bytes: Option<i64>, pub certificates: Option<IdRef>, pub description: Option<Description>, pub drive_form_factor: Option<FormFactor>, pub encryption_ability: Option<EncryptionAbility>, pub encryption_status: Option<EncryptionStatus>, pub environment_metrics: Option<IdRef>, pub failure_predicted: Option<bool>, pub firmware_version: Option<String>, pub hotspare_replacement_mode: Option<HotspareReplacementModeType>, pub hotspare_type: Option<HotspareType>, pub id: Id, pub identifiers: Option<Vec<Identifier>>, pub indicator_led: Option<IndicatorLED>, pub links: Option<Links>, pub location: Option<Vec<Location>>, pub location_indicator_active: Option<bool>, pub manufacturer: Option<String>, pub measurements: Option<Vec<MeasurementBlock>>, pub media_type: Option<MediaType>, pub metrics: Option<IdRef>, pub model: Option<String>, pub multipath: Option<bool>, pub name: Name, pub negotiated_speed_gbs: Option<f64>, pub oem: Option<Oem>, pub operations: Option<Vec<Operations>>, pub part_number: Option<String>, pub physical_location: Option<Location>, pub predicted_media_life_left_percent: Option<f64>, pub protocol: Option<Protocol>, pub ready_to_remove: Option<bool>, pub revision: Option<String>, pub rotation_speed_rpm: Option<f64>, pub sku: Option<String>, pub serial_number: Option<String>, pub slot_capable_protocols: Option<Vec<Protocol>>, pub slot_form_factor: Option<FormFactor>, pub status: Option<Status>, pub status_indicator: Option<StatusIndicator>, pub write_cache_enabled: Option<bool>,
}
Expand description

The Drive schema represents a single physical drive for a system, including links to associated volumes. It also describes the location, such as a slot, socket, or bay, where a unit can be installed, by populating a resource instance with an absent state if a unit is not present.

Fields§

§odata_context: Option<Context>§odata_etag: Option<Etag>§odata_id: Id§odata_type: Type§actions: Option<Actions>§assembly: Option<IdRef>§asset_tag: Option<String>

The user-assigned asset tag for this drive.

§block_size_bytes: Option<i64>

The size, in bytes, of the smallest addressable unit, or block.

§capable_speed_gbs: Option<f64>

The speed, in gigabit per second (Gbit/s), at which this drive can communicate to a storage controller in ideal conditions.

§capacity_bytes: Option<i64>

The size, in bytes, of this drive.

§certificates: Option<IdRef>§description: Option<Description>§drive_form_factor: Option<FormFactor>§encryption_ability: Option<EncryptionAbility>§encryption_status: Option<EncryptionStatus>§environment_metrics: Option<IdRef>§failure_predicted: Option<bool>

An indication of whether this drive currently predicts a failure in the near future.

§firmware_version: Option<String>

The firmware version for this drive.

§hotspare_replacement_mode: Option<HotspareReplacementModeType>§hotspare_type: Option<HotspareType>§id: Id§identifiers: Option<Vec<Identifier>>

The durable names for the drive.

§indicator_led: Option<IndicatorLED>§links: Option<Links>§location: Option<Vec<Location>>

The location of the drive.

§location_indicator_active: Option<bool>

An indicator allowing an operator to physically locate this resource.

§manufacturer: Option<String>

The manufacturer of this drive.

§measurements: Option<Vec<MeasurementBlock>>

An array of DSP0274-defined measurement blocks.

§media_type: Option<MediaType>§metrics: Option<IdRef>§model: Option<String>

The model number for the drive.

§multipath: Option<bool>

An indication of whether the drive is accessible from multiple paths.

§name: Name§negotiated_speed_gbs: Option<f64>

The speed, in gigabit per second (Gbit/s), at which this drive currently communicates to the storage controller.

§oem: Option<Oem>§operations: Option<Vec<Operations>>

The operations currently running on the Drive.

§part_number: Option<String>

The part number for this drive.

§physical_location: Option<Location>§predicted_media_life_left_percent: Option<f64>

The percentage of reads and writes that are predicted to be available for the media.

§protocol: Option<Protocol>§ready_to_remove: Option<bool>

An indication of whether the drive is prepared by the system for removal.

§revision: Option<String>

The revision of this drive. For SCSI-based drives, this is the version of the drive from the ‘Inquiry’ command, which can be the firmware or hardware version. For other types of drives, this is the hardware version.

§rotation_speed_rpm: Option<f64>

The rotation speed of this drive, in revolutions per minute (RPM).

§sku: Option<String>

The SKU for this drive.

§serial_number: Option<String>

The serial number for this drive.

§slot_capable_protocols: Option<Vec<Protocol>>

The drive protocols capable in this slot.

§slot_form_factor: Option<FormFactor>§status: Option<Status>§status_indicator: Option<StatusIndicator>§write_cache_enabled: Option<bool>

An indication of whether the drive write cache is enabled.

Trait Implementations§

Source§

impl Clone for Drive

Source§

fn clone(&self) -> Drive

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Drive

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for Drive

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for Drive

Source§

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 Metadata<'static> for Drive

Source§

const JSON_SCHEMA: &'static str = "Drive.v1_17_0.json"

Name of the json-schema file that describes the entity that implements this trait. Should be only the file name, so that it can be resolved relative to the URL of the redfish service, or the public Redfish schema index.
Source§

impl Serialize for Drive

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

§

impl Freeze for Drive

§

impl RefUnwindSafe for Drive

§

impl Send for Drive

§

impl Sync for Drive

§

impl Unpin for Drive

§

impl UnsafeUnpin for Drive

§

impl UnwindSafe for Drive

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,