[][src]Enum schemeguardian::global::GenericRole

pub enum GenericRole<R> {
    SuperUser,
    Admin,
    SubAdmin,
    User,
    CustomRole(R),
    Unspecified,
}

Role of the user

Variants

SuperUser

The user with all access rights

Admin

A user with administrative rights

SubAdmin

A user with some administrative rights

User

A normal user

CustomRole(R)

A custom role for the user

Unspecified

Role is not specified hence the user has no rights

Trait Implementations

impl<R: Clone> Clone for GenericRole<R>[src]

impl<R> Default for GenericRole<R>[src]

impl<R: Eq> Eq for GenericRole<R>[src]

impl<R: PartialEq> PartialEq<GenericRole<R>> for GenericRole<R>[src]

impl<R: Debug> Debug for GenericRole<R>[src]

impl<R> StructuralPartialEq for GenericRole<R>[src]

impl<R> StructuralEq for GenericRole<R>[src]

impl<R> Serialize for GenericRole<R> where
    R: Serialize
[src]

impl<'de, R> Deserialize<'de> for GenericRole<R> where
    R: Deserialize<'de>, 
[src]

Auto Trait Implementations

impl<R> Send for GenericRole<R> where
    R: Send

impl<R> Sync for GenericRole<R> where
    R: Sync

impl<R> Unpin for GenericRole<R> where
    R: Unpin

impl<R> UnwindSafe for GenericRole<R> where
    R: UnwindSafe

impl<R> RefUnwindSafe for GenericRole<R> where
    R: RefUnwindSafe

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,