pub struct GetUserResponse {
pub created_at: f64,
pub display_name: String,
pub email: Option<String>,
pub id: String,
pub role: GetUserResponseRole,
}Expand description
GetUserResponse
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: GetUserResponseRoleImplementations§
Source§impl GetUserResponse
impl GetUserResponse
pub fn builder() -> GetUserResponse
Trait Implementations§
Source§impl Clone for GetUserResponse
impl Clone for GetUserResponse
Source§fn clone(&self) -> GetUserResponse
fn clone(&self) -> GetUserResponse
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 GetUserResponse
impl Debug for GetUserResponse
Source§impl<'de> Deserialize<'de> for GetUserResponse
impl<'de> Deserialize<'de> for GetUserResponse
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<&GetUserResponse> for GetUserResponse
impl From<&GetUserResponse> for GetUserResponse
Source§fn from(value: &GetUserResponse) -> Self
fn from(value: &GetUserResponse) -> Self
Converts to this type from the input type.
Source§impl From<GetUserResponse> for GetUserResponse
impl From<GetUserResponse> for GetUserResponse
Source§fn from(value: GetUserResponse) -> Self
fn from(value: GetUserResponse) -> Self
Converts to this type from the input type.
Source§impl Serialize for GetUserResponse
impl Serialize for GetUserResponse
Source§impl TryFrom<GetUserResponse> for GetUserResponse
impl TryFrom<GetUserResponse> for GetUserResponse
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: GetUserResponse) -> Result<Self, ConversionError>
fn try_from(value: GetUserResponse) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for GetUserResponse
impl RefUnwindSafe for GetUserResponse
impl Send for GetUserResponse
impl Sync for GetUserResponse
impl Unpin for GetUserResponse
impl UnsafeUnpin for GetUserResponse
impl UnwindSafe for GetUserResponse
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