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