Struct libkelp::lib::util::os::Os [−][src]
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
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
Blanket Implementations
Mutably borrows from an owned value. Read more