pub struct TenantScopedSubjectMapper;Expand description
Default tenant-aware subject mapper.
It keeps the principal id unchanged and prefixes the principal kind with the
tenant id, so equal principal ids in different tenants do not share keepsake
relations. Applications with an existing subject convention can provide a
custom SubjectMapper instead.
Trait Implementations§
Source§impl Clone for TenantScopedSubjectMapper
impl Clone for TenantScopedSubjectMapper
Source§fn clone(&self) -> TenantScopedSubjectMapper
fn clone(&self) -> TenantScopedSubjectMapper
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for TenantScopedSubjectMapper
Source§impl Debug for TenantScopedSubjectMapper
impl Debug for TenantScopedSubjectMapper
Source§impl Default for TenantScopedSubjectMapper
impl Default for TenantScopedSubjectMapper
Source§fn default() -> TenantScopedSubjectMapper
fn default() -> TenantScopedSubjectMapper
Returns the “default value” for a type. Read more
Source§impl SubjectMapper for TenantScopedSubjectMapper
impl SubjectMapper for TenantScopedSubjectMapper
Source§fn subject(&self, cx: &Context) -> Result<SubjectRef, KeepsakeError>
fn subject(&self, cx: &Context) -> Result<SubjectRef, KeepsakeError>
Builds the keepsake subject for this request. Read more
Auto Trait Implementations§
impl Freeze for TenantScopedSubjectMapper
impl RefUnwindSafe for TenantScopedSubjectMapper
impl Send for TenantScopedSubjectMapper
impl Sync for TenantScopedSubjectMapper
impl Unpin for TenantScopedSubjectMapper
impl UnsafeUnpin for TenantScopedSubjectMapper
impl UnwindSafe for TenantScopedSubjectMapper
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