pub enum TokenRole {
Is(Option<String>),
NotAllowed,
}Expand description
Who a verified token’s bearer speaks as.
Variants§
Is(Option<String>)
Who the caller is. None leaves the database role standing in.
NotAllowed
The caller asked to be a role its token does not list.
Trait Implementations§
impl Eq for TokenRole
impl StructuralPartialEq for TokenRole
Auto Trait Implementations§
impl Freeze for TokenRole
impl RefUnwindSafe for TokenRole
impl Send for TokenRole
impl Sync for TokenRole
impl Unpin for TokenRole
impl UnsafeUnpin for TokenRole
impl UnwindSafe for TokenRole
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