pub enum InviteRole {
Admin,
Member,
}Expand description
InviteRole
JSON schema
{
"type": "string",
"enum": [
"admin",
"member"
]
}Variants§
Trait Implementations§
Source§impl Clone for InviteRole
impl Clone for InviteRole
Source§fn clone(&self) -> InviteRole
fn clone(&self) -> InviteRole
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 InviteRole
Source§impl Debug for InviteRole
impl Debug for InviteRole
Source§impl<'de> Deserialize<'de> for InviteRole
impl<'de> Deserialize<'de> for InviteRole
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 InviteRole
impl Display for InviteRole
impl Eq for InviteRole
Source§impl FromStr for InviteRole
impl FromStr for InviteRole
Source§impl Hash for InviteRole
impl Hash for InviteRole
Source§impl Ord for InviteRole
impl Ord for InviteRole
Source§fn cmp(&self, other: &InviteRole) -> Ordering
fn cmp(&self, other: &InviteRole) -> 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
Source§impl PartialEq for InviteRole
impl PartialEq for InviteRole
Source§fn eq(&self, other: &InviteRole) -> bool
fn eq(&self, other: &InviteRole) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for InviteRole
impl PartialOrd for InviteRole
Source§impl Serialize for InviteRole
impl Serialize for InviteRole
impl StructuralPartialEq for InviteRole
Source§impl TryFrom<&String> for InviteRole
impl TryFrom<&String> for InviteRole
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§impl TryFrom<&str> for InviteRole
impl TryFrom<&str> for InviteRole
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§impl TryFrom<String> for InviteRole
impl TryFrom<String> for InviteRole
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl Freeze for InviteRole
impl RefUnwindSafe for InviteRole
impl Send for InviteRole
impl Sync for InviteRole
impl Unpin for InviteRole
impl UnsafeUnpin for InviteRole
impl UnwindSafe for InviteRole
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