pub enum DbUserRole {
Admin,
Write,
Read,
}Variants§
Trait Implementations§
source§impl Clone for DbUserRole
impl Clone for DbUserRole
source§fn clone(&self) -> DbUserRole
fn clone(&self) -> DbUserRole
Returns a copy of the value. Read more
1.6.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§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<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<'__s> ToSchema<'__s> for DbUserRole
impl<'__s> ToSchema<'__s> 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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)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.