pub enum Tier {
S,
A,
B,
C,
D,
E,
F,
}Expand description
The Tier enum represents the grade given to a cock.
Variants§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Tier
impl<'de> Deserialize<'de> for Tier
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
Source§impl Display for Tier
The std::fmt::Display trait implementation for Tier returns a string representation of the Tier variant.
impl Display for Tier
The std::fmt::Display trait implementation for Tier returns a string representation of the Tier variant.
Source§impl FromString for Tier
The FromString trait implementation for Tier returns a variant of Tier.
impl FromString for Tier
The FromString trait implementation for Tier returns a variant of Tier.
Source§fn from_string(tier: &str) -> Tier
fn from_string(tier: &str) -> Tier
Function to create an instance of the type implementing this trait from a string.
Source§impl GetVariants for Tier
The GetVariants trait implementation for Tier returns a vector of the possible variants of Tier.
impl GetVariants for Tier
The GetVariants trait implementation for Tier returns a vector of the possible variants of Tier.
Source§fn get_variants() -> Vec<String>
fn get_variants() -> Vec<String>
Function to get the variants of the object.
impl StructuralPartialEq for Tier
Auto Trait Implementations§
impl Freeze for Tier
impl RefUnwindSafe for Tier
impl Send for Tier
impl Sync for Tier
impl Unpin for Tier
impl UnwindSafe for Tier
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