#[repr(u32)]
pub enum Rarity {
Civilian,
Freelance,
Mercenary,
Commando,
Assassin,
Elite,
}
Variants§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Rarity
impl<'de> Deserialize<'de> for Rarity
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 PartialEq<Rarity> for Rarity
impl PartialEq<Rarity> for Rarity
source§impl TryFrom<u32> for Rarity
impl TryFrom<u32> for Rarity
§type Error = TryFromPrimitiveError<Rarity>
type Error = TryFromPrimitiveError<Rarity>
The type returned in the event of a conversion error.