pub enum DistroDisplay {
Name,
NameVersion,
NameArch,
NameModel,
NameModelVersion,
NameModelArch,
NameModelVersionArch,
}Expand description
Controls the format of the distribution (distro) string in the output. Used to customize how much detail about the OS is shown.
- Name: Only the distro name (e.g., “Arch Linux”).
- NameVersion: Name and version.
- NameArch: Name and architecture.
- NameModel: Name and model (e.g., LTS, Rolling).
- NameModelVersion: Name, model, and version.
- NameModelArch: Name, model, and architecture.
- NameModelVersionArch: Name, model, version, and architecture. (default)
Variants§
Trait Implementations§
Source§impl Clone for DistroDisplay
impl Clone for DistroDisplay
Source§fn clone(&self) -> DistroDisplay
fn clone(&self) -> DistroDisplay
Returns a duplicate of the value. Read more
1.0.0 · 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 DistroDisplay
impl Debug for DistroDisplay
Source§impl FromStr for DistroDisplay
impl FromStr for DistroDisplay
Source§impl PartialEq for DistroDisplay
impl PartialEq for DistroDisplay
impl Copy for DistroDisplay
impl StructuralPartialEq for DistroDisplay
Auto Trait Implementations§
impl Freeze for DistroDisplay
impl RefUnwindSafe for DistroDisplay
impl Send for DistroDisplay
impl Sync for DistroDisplay
impl Unpin for DistroDisplay
impl UnwindSafe for DistroDisplay
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more