pub struct InMemoryClaimsProvider { /* private fields */ }Expand description
Simple in-memory claims provider.
Implementations§
Source§impl InMemoryClaimsProvider
impl InMemoryClaimsProvider
Sourcepub fn new() -> InMemoryClaimsProvider
pub fn new() -> InMemoryClaimsProvider
Creates a new empty claims provider.
Sourcepub fn set_claims(&self, claims: UserClaims)
pub fn set_claims(&self, claims: UserClaims)
Adds or updates claims for a user.
Sourcepub fn remove_claims(&self, subject: &str)
pub fn remove_claims(&self, subject: &str)
Removes claims for a user.
Trait Implementations§
Source§impl ClaimsProvider for InMemoryClaimsProvider
impl ClaimsProvider for InMemoryClaimsProvider
Source§fn get_claims(&self, subject: &str) -> Option<UserClaims>
fn get_claims(&self, subject: &str) -> Option<UserClaims>
Retrieves claims for a user by subject identifier. Read more
Source§impl Debug for InMemoryClaimsProvider
impl Debug for InMemoryClaimsProvider
Source§impl Default for InMemoryClaimsProvider
impl Default for InMemoryClaimsProvider
Source§fn default() -> InMemoryClaimsProvider
fn default() -> InMemoryClaimsProvider
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !Freeze for InMemoryClaimsProvider
impl RefUnwindSafe for InMemoryClaimsProvider
impl Send for InMemoryClaimsProvider
impl Sync for InMemoryClaimsProvider
impl Unpin for InMemoryClaimsProvider
impl UnwindSafe for InMemoryClaimsProvider
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, _span: NoopSpan) -> Self
fn instrument(self, _span: NoopSpan) -> Self
Instruments this future with a span (no-op when disabled).
Source§fn in_current_span(self) -> Self
fn in_current_span(self) -> Self
Instruments this future with the current span (no-op when disabled).