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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

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

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

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

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.