pub enum MemberRole {
Read,
Write,
Admin,
}Expand description
A role assignable to a tenant member: read, write, or admin. owner
is a platform-wide role, not a tenant membership, so it is not a valid value
here.
JSON schema
{
"description": "A role assignable to a tenant member: `read`, `write`, or `admin`. `owner`\nis a platform-wide role, not a tenant membership, so it is not a valid value\nhere.",
"type": "string",
"enum": [
"read",
"write",
"admin"
]
}Variants§
Trait Implementations§
Source§impl Clone for MemberRole
impl Clone for MemberRole
Source§fn clone(&self) -> MemberRole
fn clone(&self) -> MemberRole
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 MemberRole
Source§impl Debug for MemberRole
impl Debug for MemberRole
Source§impl<'de> Deserialize<'de> for MemberRole
impl<'de> Deserialize<'de> for MemberRole
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 MemberRole
impl Display for MemberRole
impl Eq for MemberRole
Source§impl From<&MemberRole> for MemberRole
impl From<&MemberRole> for MemberRole
Source§fn from(value: &MemberRole) -> Self
fn from(value: &MemberRole) -> Self
Converts to this type from the input type.
Source§impl FromStr for MemberRole
impl FromStr for MemberRole
Source§impl Hash for MemberRole
impl Hash for MemberRole
Source§impl Ord for MemberRole
impl Ord for MemberRole
Source§fn cmp(&self, other: &MemberRole) -> Ordering
fn cmp(&self, other: &MemberRole) -> Ordering
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 MemberRole
impl PartialEq for MemberRole
Source§impl PartialOrd for MemberRole
impl PartialOrd for MemberRole
Source§impl Serialize for MemberRole
impl Serialize for MemberRole
impl StructuralPartialEq for MemberRole
Source§impl TryFrom<&String> for MemberRole
impl TryFrom<&String> for MemberRole
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§impl TryFrom<&str> for MemberRole
impl TryFrom<&str> for MemberRole
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§impl TryFrom<String> for MemberRole
impl TryFrom<String> for MemberRole
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl Freeze for MemberRole
impl RefUnwindSafe for MemberRole
impl Send for MemberRole
impl Sync for MemberRole
impl Unpin for MemberRole
impl UnsafeUnpin for MemberRole
impl UnwindSafe for MemberRole
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.