pub enum MediaType {
Hdd,
Ssd,
Smr,
UnsupportedValue,
}Variants§
Hdd
The drive media type is traditional magnetic platters.
Ssd
The drive media type is solid state or flash memory.
Smr
The drive media type is shingled magnetic recording.
UnsupportedValue
Fallback value for values that are not supported by current version of Redfish schema.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for MediaType
impl<'de> Deserialize<'de> for MediaType
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
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 ToSnakeCase for MediaType
impl ToSnakeCase for MediaType
Source§fn to_snake_case(&self) -> &'static str
fn to_snake_case(&self) -> &'static str
Convert this enum variant to a
snake_case stringimpl Copy for MediaType
impl Eq for MediaType
impl StructuralPartialEq for MediaType
Auto Trait Implementations§
impl Freeze for MediaType
impl RefUnwindSafe for MediaType
impl Send for MediaType
impl Sync for MediaType
impl Unpin for MediaType
impl UnsafeUnpin for MediaType
impl UnwindSafe for MediaType
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