pub struct Os {
pub name: String,
pub file: String,
pub priority: i16,
pub prettyname: String,
pub submatches: Vec<String>,
}
Fields§
§name: String
Name of the os
file: String
File used to reconise it
priority: i16
“Priority” of the OS For example Arch has pritority 1 and file /etc/arch-release And manjaro has priority 2 and files /etc/arch-release AND /etc/manjaro-release If both /etc/manjaro-release and /etc/arch-release exists, the higher priority will be used In this case it’s 2 (manjaro)
prettyname: String
The “pretty” name of the OS: for example “Arch GNU/Linux”
submatches: Vec<String>
Submatches (parent distros)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Os
impl<'de> Deserialize<'de> for Os
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
Auto Trait Implementations§
impl Freeze for Os
impl RefUnwindSafe for Os
impl Send for Os
impl Sync for Os
impl Unpin for Os
impl UnwindSafe for Os
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