pub enum TokenRisk {
Superadmin,
Admin,
AllWorkspaces,
NeverExpires,
Unused,
}Expand description
TokenRisk : superadmin / admin: minted with those rights (and the owner still an admin where the token reaches), not narrowed by scopes or read-only mode. all_workspaces: not bound to a workspace. never_expires: no expiration. unused: not used in over 90 days. superadmin / admin: minted with those rights (and the owner still an admin where the token reaches), not narrowed by scopes or read-only mode. all_workspaces: not bound to a workspace. never_expires: no expiration. unused: not used in over 90 days.
Variants§
Trait Implementations§
impl Copy for TokenRisk
Source§impl<'de> Deserialize<'de> for TokenRisk
impl<'de> Deserialize<'de> for TokenRisk
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
impl Eq for TokenRisk
Source§impl Ord for TokenRisk
impl Ord for TokenRisk
1.21.0 (const: unstable) · 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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for TokenRisk
impl PartialOrd for TokenRisk
impl StructuralPartialEq for TokenRisk
Auto Trait Implementations§
impl Forget for TokenRisk
impl Freeze for TokenRisk
impl Move for TokenRisk
impl RefUnwindSafe for TokenRisk
impl Send for TokenRisk
impl Sync for TokenRisk
impl Unpin for TokenRisk
impl UnsafeUnpin for TokenRisk
impl UnwindSafe for TokenRisk
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