#[repr(u8)]pub enum TenantRole {
Owner = 0,
Admin = 1,
Member = 2,
}Expand description
The current user’s role within a tenant, as returned alongside the tenant
in list/show responses (kept off the bare Tenant record itself).
Variants§
Trait Implementations§
Source§impl Clone for TenantRole
impl Clone for TenantRole
Source§fn clone(&self) -> TenantRole
fn clone(&self) -> TenantRole
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 TenantRole
Source§impl Debug for TenantRole
impl Debug for TenantRole
Source§impl<'de> Deserialize<'de> for TenantRole
impl<'de> Deserialize<'de> for TenantRole
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
Source§impl Display for TenantRole
impl Display for TenantRole
impl Eq for TenantRole
Source§impl PartialEq for TenantRole
impl PartialEq for TenantRole
Source§impl Serialize for TenantRole
impl Serialize for TenantRole
impl StructuralPartialEq for TenantRole
Auto Trait Implementations§
impl Freeze for TenantRole
impl RefUnwindSafe for TenantRole
impl Send for TenantRole
impl Sync for TenantRole
impl Unpin for TenantRole
impl UnsafeUnpin for TenantRole
impl UnwindSafe for TenantRole
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