Enum VariantKind

Source
#[non_exhaustive]
pub enum VariantKind {
Show 19 variants ALMA8, ALMA9, CENTOS7, CENTOS8, CENTOS9, DEBIAN10, DEBIAN11, DEBIAN12, DEBIAN13, ORACLE7, ORACLE8, ORACLE9, RHEL8, ROCKY8, ROCKY9, UBUNTU1804, UBUNTU2004, UBUNTU2204, UBUNTU2404,
}
Expand description

The supported StorPool build variants (OS distribution, version, etc).

Variants (Non-exhaustive)§

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
§

ALMA8

AlmaLinux 8.x

§

ALMA9

AlmaLinux 9.x

§

CENTOS7

CentOS 7.x

§

CENTOS8

CentOS 8.x

§

CENTOS9

CentOS Stream 9.x

§

DEBIAN10

Debian 10.x (buster)

§

DEBIAN11

Debian 11.x (bullseye)

§

DEBIAN12

Debian 12.x (bookworm)

§

DEBIAN13

Debian 13.x (trixie/unstable)

§

ORACLE7

Oracle Linux 7.x

§

ORACLE8

Oracle Linux 8.x

§

ORACLE9

Oracle Linux 9.x

§

RHEL8

RedHat Enterprise Linux 8.x

§

ROCKY8

Rocky Linux 8.x

§

ROCKY9

Rocky Linux 9.x

§

UBUNTU1804

Ubuntu 18.04 LTS (Bionic Beaver)

§

UBUNTU2004

Ubuntu 20.04 LTS (Focal Fossa)

§

UBUNTU2204

Ubuntu 22.04 LTS (Jammy Jellyfish)

§

UBUNTU2404

Ubuntu 24.04 LTS (Noble Numbat)

Trait Implementations§

Source§

impl AsRef<str> for VariantKind

Source§

fn as_ref(&self) -> &str

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl Clone for VariantKind

Source§

fn clone(&self) -> VariantKind

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for VariantKind

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for VariantKind

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl FromStr for VariantKind

Source§

type Err = VariantError

The associated error which can be returned from parsing.
Source§

fn from_str(value: &str) -> Result<Self, Self::Err>

Parses a string s to return a value of this type. Read more
Source§

impl Hash for VariantKind

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl PartialEq for VariantKind

Source§

fn eq(&self, other: &VariantKind) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Sequence for VariantKind

Source§

const CARDINALITY: usize = 19usize

Number of values of type Self. Read more
Source§

fn next(&self) -> Option<Self>

Returns value following *self or None if this was the end. Read more
Source§

fn previous(&self) -> Option<Self>

Returns value preceding *self or None if this was the beginning. Read more
Source§

fn first() -> Option<Self>

Returns the first value of type Self. Read more
Source§

fn last() -> Option<Self>

Returns the last value of type Self. Read more
Source§

impl Serialize for VariantKind

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl Copy for VariantKind

Source§

impl Eq for VariantKind

Source§

impl StructuralPartialEq for VariantKind

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

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

fn clone_into(&self, target: &mut T)

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

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,