pub struct PatchUserBody {
pub display_name: Option<PatchUserBodyDisplayName>,
pub role: Option<PatchUserBodyRole>,
}Expand description
PatchUserBody
JSON schema
{
"type": "object",
"properties": {
"displayName": {
"type": "string",
"maxLength": 60,
"minLength": 1
},
"role": {
"type": "string",
"enum": [
"user",
"admin"
]
}
}
}Fields§
§display_name: Option<PatchUserBodyDisplayName>§role: Option<PatchUserBodyRole>Implementations§
Source§impl PatchUserBody
impl PatchUserBody
pub fn builder() -> PatchUserBody
Trait Implementations§
Source§impl Clone for PatchUserBody
impl Clone for PatchUserBody
Source§fn clone(&self) -> PatchUserBody
fn clone(&self) -> PatchUserBody
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 PatchUserBody
impl Debug for PatchUserBody
Source§impl Default for PatchUserBody
impl Default for PatchUserBody
Source§impl<'de> Deserialize<'de> for PatchUserBody
impl<'de> Deserialize<'de> for PatchUserBody
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 From<&PatchUserBody> for PatchUserBody
impl From<&PatchUserBody> for PatchUserBody
Source§fn from(value: &PatchUserBody) -> Self
fn from(value: &PatchUserBody) -> Self
Converts to this type from the input type.
Source§impl From<PatchUserBody> for PatchUserBody
impl From<PatchUserBody> for PatchUserBody
Source§fn from(value: PatchUserBody) -> Self
fn from(value: PatchUserBody) -> Self
Converts to this type from the input type.
Source§impl Serialize for PatchUserBody
impl Serialize for PatchUserBody
Source§impl TryFrom<PatchUserBody> for PatchUserBody
impl TryFrom<PatchUserBody> for PatchUserBody
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: PatchUserBody) -> Result<Self, ConversionError>
fn try_from(value: PatchUserBody) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for PatchUserBody
impl RefUnwindSafe for PatchUserBody
impl Send for PatchUserBody
impl Sync for PatchUserBody
impl Unpin for PatchUserBody
impl UnsafeUnpin for PatchUserBody
impl UnwindSafe for PatchUserBody
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