Enum edge_frame::dto::Role
source · #[repr(u8)]pub enum Role {
None = 0,
User = 1,
Admin = 2,
}Variants§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Role
impl<'de> Deserialize<'de> for Role
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 EnumMessage for Role
impl EnumMessage for Role
fn get_message(&self) -> Option<&'static str>
fn get_detailed_message(&self) -> Option<&'static str>
source§fn get_documentation(&self) -> Option<&'static str>
fn get_documentation(&self) -> Option<&'static str>
Get the doc comment associated with a variant if it exists.
fn get_serializations(&self) -> &'static [&'static str]
source§impl EnumSetTypePrivate for Role
impl EnumSetTypePrivate for Role
source§const ALL_BITS: Self::Repr = {transmute(0x07): <dto::role::Role as enumset::__internal::EnumSetTypePrivate>::Repr}
const ALL_BITS: Self::Repr = {transmute(0x07): <dto::role::Role as enumset::__internal::EnumSetTypePrivate>::Repr}
A mask of bits that are valid in the bitset.
source§const VARIANT_COUNT: u32 = 3u32
const VARIANT_COUNT: u32 = 3u32
The number of variants in the bitset.
source§fn enum_into_u32(self) -> u32
fn enum_into_u32(self) -> u32
Converts an enum of this type into its bit position.
source§unsafe fn enum_from_u32(val: u32) -> Self
unsafe fn enum_from_u32(val: u32) -> Self
Converts a bit position into an enum value.
source§fn serialize<S: Serializer>(
set: EnumSet<Role>,
ser: S
) -> Result<S::Ok, S::Error>
fn serialize<S: Serializer>( set: EnumSet<Role>, ser: S ) -> Result<S::Ok, S::Error>
Serializes the
EnumSet. Read moresource§fn deserialize<'de, D: Deserializer<'de>>(
de: D
) -> Result<EnumSet<Role>, D::Error>
fn deserialize<'de, D: Deserializer<'de>>( de: D ) -> Result<EnumSet<Role>, D::Error>
Deserializes the
EnumSet.source§impl PartialEq<EnumSet<Role>> for Role
impl PartialEq<EnumSet<Role>> for Role
source§impl PartialEq for Role
impl PartialEq for Role
source§impl PartialOrd for Role
impl PartialOrd for Role
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moresource§impl TryFrom<u8> for Role
impl TryFrom<u8> for Role
§type Error = TryFromPrimitiveError<Role>
type Error = TryFromPrimitiveError<Role>
The type returned in the event of a conversion error.
source§impl TryFromPrimitive for Role
impl TryFromPrimitive for Role
impl Copy for Role
impl EnumSetType for Role
impl Eq for Role
Auto Trait Implementations§
impl RefUnwindSafe for Role
impl Send for Role
impl Sync for Role
impl Unpin for Role
impl UnwindSafe for Role
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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<T> FromQuery for Twhere
T: DeserializeOwned,
impl<T> FromQuery for Twhere T: DeserializeOwned,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoPropValue<Option<T>> for T
impl<T> IntoPropValue<Option<T>> for T
source§fn into_prop_value(self) -> Option<T>
fn into_prop_value(self) -> Option<T>
Convert
self to a value of a Properties struct.source§impl<T> IntoPropValue<T> for T
impl<T> IntoPropValue<T> for T
source§fn into_prop_value(self) -> T
fn into_prop_value(self) -> T
Convert
self to a value of a Properties struct.