pub struct TenantScope(pub [u8; 32]);Expand description
Unresolved tenant identity: the SHA-256 digest of the caller’s scope
string. The tenant directory maps it to a TenantId; only the digest is
stored, never the scope string.
Tuple Fields§
§0: [u8; 32]Implementations§
Trait Implementations§
Source§impl Clone for TenantScope
impl Clone for TenantScope
impl Copy for TenantScope
Source§impl Debug for TenantScope
impl Debug for TenantScope
Source§impl<'de> Deserialize<'de> for TenantScope
impl<'de> Deserialize<'de> for TenantScope
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
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
Source§impl Serialize for TenantScope
impl Serialize 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.