pub struct Tenancy { /* private fields */ }Expand description
The tenant a request acts within: an organization, optionally narrowed to one of its projects. Empty means the caller’s own personal scope.
A secret key does not need this and an access token does. A key is bound to its tenant server-side, so the API reads tenancy off the key and ignores what the request claims. A bearer is not: one token can hold grants on several organizations, so the tenant is decided per request from these headers - and a request that sends neither resolves to the personal tier no matter what the token was granted. That is why an org-owned connection is simply absent from a bearer’s results until this is set.
Trait Implementations§
Auto Trait Implementations§
impl Forget for Tenancy
impl Freeze for Tenancy
impl Move for Tenancy
impl RefUnwindSafe for Tenancy
impl Send for Tenancywhere
RawVecInner: Send,
impl Sync for Tenancywhere
RawVecInner: Sync,
impl Unpin for Tenancy
impl UnsafeUnpin for Tenancy
impl UnwindSafe for Tenancywhere
RawVecInner: UnwindSafe,
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