pub struct OperativeSystem {
pub name: String,
pub family: Option<String>,
pub variant: Option<String>,
pub kind: OsKind,
}Expand description
Represents an operative system.
Examples:
name: "Linux",family: Some("unix"),variant: Some("2.2.x-3.x"),kind: OsKind::Specifiedname: "Windows",family: Some("win"),variant: Some("NT kernel 6.x"),kind: OsKind::Specified
Fields§
§name: String§family: Option<String>§variant: Option<String>§kind: OsKindTrait Implementations§
Source§impl Clone for OperativeSystem
impl Clone for OperativeSystem
Source§fn clone(&self) -> OperativeSystem
fn clone(&self) -> OperativeSystem
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 OperativeSystem
impl Debug for OperativeSystem
Source§impl From<&Label> for OperativeSystem
impl From<&Label> for OperativeSystem
Source§fn from(label: &Label) -> OperativeSystem
fn from(label: &Label) -> OperativeSystem
Converts to this type from the input type.
Source§impl Serialize for OperativeSystem
impl Serialize for OperativeSystem
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for OperativeSystem
impl RefUnwindSafe for OperativeSystem
impl Send for OperativeSystem
impl Sync for OperativeSystem
impl Unpin for OperativeSystem
impl UnsafeUnpin for OperativeSystem
impl UnwindSafe for OperativeSystem
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