pub enum AccessType {
Record(Box<RecordAccess>),
Jwt(JwtAccess),
Bearer(BearerAccess),
}Expand description
The type of access methods available
Variants§
Implementations§
Source§impl AccessType
impl AccessType
Sourcepub fn can_issue_grants(&self) -> bool
pub fn can_issue_grants(&self) -> bool
Returns whether or not the access method can issue non-token grants In this context, token refers exclusively to JWT
Sourcepub fn can_issue_tokens(&self) -> bool
pub fn can_issue_tokens(&self) -> bool
Returns whether or not the access method can issue tokens In this context, tokens refers exclusively to JWT
Trait Implementations§
Source§impl Clone for AccessType
impl Clone for AccessType
Source§impl Debug for AccessType
impl Debug for AccessType
Source§impl Default for AccessType
impl Default for AccessType
impl Eq for AccessType
Source§impl From<AccessType> for AccessType
impl From<AccessType> for AccessType
Source§fn from(v: AccessType) -> Self
fn from(v: AccessType) -> Self
Converts to this type from the input type.
Source§impl From<AccessType> for AccessType
impl From<AccessType> for AccessType
Source§fn from(v: AccessType) -> Self
fn from(v: AccessType) -> Self
Converts to this type from the input type.
Source§impl Hash for AccessType
impl Hash for AccessType
Source§impl PartialEq for AccessType
impl PartialEq for AccessType
impl StructuralPartialEq for AccessType
Source§impl<V: Visitor> Visit<V> for AccessType
impl<V: Visitor> Visit<V> for AccessType
Auto Trait Implementations§
impl !Freeze for AccessType
impl RefUnwindSafe for AccessType
impl Send for AccessType
impl Sync for AccessType
impl Unpin for AccessType
impl UnsafeUnpin for AccessType
impl UnwindSafe for AccessType
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§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.