pub enum DbUserRole {
Admin,
Write,
Read,
}Variants§
Trait Implementations§
Source§impl Serialize for DbUserRole
impl Serialize for DbUserRole
Source§impl Clone for DbUserRole
impl Clone for DbUserRole
Source§fn clone(&self) -> DbUserRole
fn clone(&self) -> DbUserRole
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl ComposeSchema for DbUserRole
impl ComposeSchema for DbUserRole
Source§impl Debug for DbUserRole
impl Debug for DbUserRole
Source§impl Default for DbUserRole
impl Default for DbUserRole
Source§fn default() -> DbUserRole
fn default() -> DbUserRole
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DbUserRole
impl<'de> Deserialize<'de> for DbUserRole
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 DbUserRole
impl Display for DbUserRole
Source§impl From<&DbValue> for DbUserRole
impl From<&DbValue> for DbUserRole
Source§impl From<&str> for DbUserRole
impl From<&str> for DbUserRole
Source§impl From<DbUserRole> for DbValue
impl From<DbUserRole> for DbValue
Source§fn from(value: DbUserRole) -> Self
fn from(value: DbUserRole) -> Self
Converts to this type from the input type.
Source§impl Ord for DbUserRole
impl Ord for DbUserRole
Source§fn cmp(&self, other: &DbUserRole) -> Ordering
fn cmp(&self, other: &DbUserRole) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for DbUserRole
impl PartialEq for DbUserRole
Source§impl PartialOrd for DbUserRole
impl PartialOrd for DbUserRole
Source§impl Serialize for DbUserRole
impl Serialize for DbUserRole
Source§impl ToSchema for DbUserRole
impl ToSchema for DbUserRole
Source§impl TryFrom<DbValue> for DbUserRole
impl TryFrom<DbValue> for DbUserRole
impl Copy for DbUserRole
impl Eq for DbUserRole
impl StructuralPartialEq for DbUserRole
Auto Trait Implementations§
impl Freeze for DbUserRole
impl RefUnwindSafe for DbUserRole
impl Send for DbUserRole
impl Sync for DbUserRole
impl Unpin for DbUserRole
impl UnwindSafe for DbUserRole
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PartialSchema for Twhere
T: ComposeSchema + ?Sized,
impl<T> PartialSchema for Twhere
T: ComposeSchema + ?Sized,
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.