pub enum AuthPermissions {
NoAccess,
Monitoring,
Operatoration,
Admin,
FullAccess,
}
Expand description
Роли для доступа в системе
Variants§
Trait Implementations§
source§impl Clone for AuthPermissions
impl Clone for AuthPermissions
source§fn clone(&self) -> AuthPermissions
fn clone(&self) -> AuthPermissions
Returns a copy 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 Debug for AuthPermissions
impl Debug for AuthPermissions
source§impl Default for AuthPermissions
impl Default for AuthPermissions
source§fn default() -> AuthPermissions
fn default() -> AuthPermissions
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for AuthPermissions
impl<'de> Deserialize<'de> for AuthPermissions
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 Ord for AuthPermissions
impl Ord for AuthPermissions
source§fn cmp(&self, other: &AuthPermissions) -> Ordering
fn cmp(&self, other: &AuthPermissions) -> 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 AuthPermissions
impl PartialEq for AuthPermissions
source§fn eq(&self, other: &AuthPermissions) -> bool
fn eq(&self, other: &AuthPermissions) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for AuthPermissions
impl PartialOrd for AuthPermissions
source§fn partial_cmp(&self, other: &AuthPermissions) -> Option<Ordering>
fn partial_cmp(&self, other: &AuthPermissions) -> Option<Ordering>
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 Serialize for AuthPermissions
impl Serialize for AuthPermissions
impl Copy for AuthPermissions
impl Eq for AuthPermissions
impl StructuralPartialEq for AuthPermissions
Auto Trait Implementations§
impl RefUnwindSafe for AuthPermissions
impl Send for AuthPermissions
impl Sync for AuthPermissions
impl Unpin for AuthPermissions
impl UnwindSafe for AuthPermissions
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