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