pub struct UserResponse {
pub display_name: String,
pub email: Option<String>,
pub id: String,
pub is_active: bool,
}Expand description
User resource returned by GET/POST/PUT endpoints.
JSON schema
{
"title": "UserResponse",
"description": "User resource returned by GET/POST/PUT endpoints.",
"type": "object",
"required": [
"display_name",
"id"
],
"properties": {
"display_name": {
"title": "Display Name",
"type": "string"
},
"email": {
"title": "Email",
"type": [
"string",
"null"
]
},
"id": {
"title": "Id",
"type": "string"
},
"is_active": {
"title": "Is Active",
"default": true,
"type": "boolean"
}
}
}Fields§
§display_name: String§email: Option<String>§id: String§is_active: boolTrait Implementations§
Source§impl Clone for UserResponse
impl Clone for UserResponse
Source§fn clone(&self) -> UserResponse
fn clone(&self) -> UserResponse
Returns a duplicate of the value. Read more
1.0.0 · 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 UserResponse
impl Debug for UserResponse
Source§impl<'de> Deserialize<'de> for UserResponse
impl<'de> Deserialize<'de> for UserResponse
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<&UserResponse> for UserResponse
impl From<&UserResponse> for UserResponse
Source§fn from(value: &UserResponse) -> Self
fn from(value: &UserResponse) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for UserResponse
impl RefUnwindSafe for UserResponse
impl Send for UserResponse
impl Sync for UserResponse
impl Unpin for UserResponse
impl UnsafeUnpin for UserResponse
impl UnwindSafe for UserResponse
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