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