pub struct JwtClaimExtractor { /* private fields */ }Expand description
Extract tenant from a JWT claim.
Implementations§
Source§impl JwtClaimExtractor
impl JwtClaimExtractor
Sourcepub fn default_claim() -> Self
pub fn default_claim() -> Self
Create with default claim name “tenant_id”.
Sourcepub fn claim_name(&self) -> &str
pub fn claim_name(&self) -> &str
Get the claim name.
Trait Implementations§
Source§impl Clone for JwtClaimExtractor
impl Clone for JwtClaimExtractor
Source§fn clone(&self) -> JwtClaimExtractor
fn clone(&self) -> JwtClaimExtractor
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for JwtClaimExtractor
impl Debug for JwtClaimExtractor
Auto Trait Implementations§
impl Freeze for JwtClaimExtractor
impl RefUnwindSafe for JwtClaimExtractor
impl Send for JwtClaimExtractor
impl Sync for JwtClaimExtractor
impl Unpin for JwtClaimExtractor
impl UnwindSafe for JwtClaimExtractor
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