pub enum TenantScope {
Global,
Tenant(TenantId),
}Expand description
The tenant partition against which an operation is evaluated.
Variants§
Global
The operation is not scoped to one tenant.
Tenant(TenantId)
The operation is scoped to the specified tenant.
Implementations§
Source§impl TenantScope
impl TenantScope
Sourcepub fn to_canonical_bytes(&self) -> Vec<u8> ⓘ
pub fn to_canonical_bytes(&self) -> Vec<u8> ⓘ
Returns the immutable idempotency-identity component encoding.
Trait Implementations§
Source§impl Clone for TenantScope
impl Clone for TenantScope
Source§impl Debug for TenantScope
impl Debug for TenantScope
impl Eq for TenantScope
Source§impl Hash for TenantScope
impl Hash for TenantScope
Source§impl Ord for TenantScope
impl Ord for TenantScope
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for TenantScope
impl PartialEq for TenantScope
Source§impl PartialOrd for TenantScope
impl PartialOrd for TenantScope
impl StructuralPartialEq for TenantScope
Auto Trait Implementations§
impl Freeze for TenantScope
impl RefUnwindSafe for TenantScope
impl Send for TenantScope
impl Sync for TenantScope
impl Unpin for TenantScope
impl UnsafeUnpin for TenantScope
impl UnwindSafe for TenantScope
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