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