pub struct Tenant {
pub team_id: Option<String>,
pub org_id: Option<String>,
}Expand description
The authenticated identity of a request caller.
The tenant a caller is scoped to (AAASM-3139).
A caller with a team_id (or org_id) is confined to that tenant for
per-tenant data endpoints. An empty Tenant (both None) means “no tenant
scope” — such a caller can only see cross-tenant data if it also holds
Scope::Admin. The synthetic bypass-mode caller and admin callers are not
confined by tenant.
Fields§
§team_id: Option<String>The team this caller is scoped to, if any.
org_id: Option<String>The org this caller is scoped to, if any.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Tenant
impl RefUnwindSafe for Tenant
impl Send for Tenant
impl Sync for Tenant
impl Unpin for Tenant
impl UnsafeUnpin for Tenant
impl UnwindSafe for Tenant
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