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