#[repr(u8)]pub enum ImpactLevel {
Low = 1,
Medium = 2,
High = 3,
}Expand description
Expected impact level of event in calendar
Variants§
Trait Implementations§
Source§impl Clone for ImpactLevel
impl Clone for ImpactLevel
Source§fn clone(&self) -> ImpactLevel
fn clone(&self) -> ImpactLevel
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ImpactLevel
Source§impl Debug for ImpactLevel
impl Debug for ImpactLevel
Source§impl Default for ImpactLevel
impl Default for ImpactLevel
Source§fn default() -> ImpactLevel
fn default() -> ImpactLevel
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ImpactLevel
impl<'de> Deserialize<'de> for ImpactLevel
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 From<ImpactLevel> for u8
impl From<ImpactLevel> for u8
Source§fn from(enum_value: ImpactLevel) -> Self
fn from(enum_value: ImpactLevel) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ImpactLevel
impl PartialEq for ImpactLevel
Source§impl Serialize for ImpactLevel
impl Serialize for ImpactLevel
impl StructuralPartialEq for ImpactLevel
Source§impl TryFrom<u8> for ImpactLevel
impl TryFrom<u8> for ImpactLevel
Source§type Error = TryFromPrimitiveError<ImpactLevel>
type Error = TryFromPrimitiveError<ImpactLevel>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for ImpactLevel
impl TryFromPrimitive for ImpactLevel
const NAME: &'static str = "ImpactLevel"
type Primitive = u8
type Error = TryFromPrimitiveError<ImpactLevel>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
Auto Trait Implementations§
impl Freeze for ImpactLevel
impl RefUnwindSafe for ImpactLevel
impl Send for ImpactLevel
impl Sync for ImpactLevel
impl Unpin for ImpactLevel
impl UnsafeUnpin for ImpactLevel
impl UnwindSafe for ImpactLevel
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