pub struct CurrentUserResponse {
pub email: String,
pub name: Option<String>,
pub personal_org_slug: Option<String>,
pub uuid: Uuid,
}Expand description
The authenticated Harmont user and their personal-org slug.
JSON schema
{
"title": "CurrentUserResponse",
"description": "The authenticated Harmont user and their personal-org
slug.",
"type": "object",
"required": [
"email",
"uuid"
],
"properties": {
"email": {
"description": "The user's email address.",
"type": "string"
},
"name": {
"description": "Display name.",
"type": [
"string",
"null"
]
},
"personal_org_slug": {
"description": "Slug of the user's personal organization.",
"type": [
"string",
"null"
]
},
"uuid": {
"description": "Stable user id.",
"type": "string",
"format": "uuid"
}
}
}Fields§
§email: StringThe user’s email address.
name: Option<String>Display name.
personal_org_slug: Option<String>Slug of the user’s personal organization.
uuid: UuidStable user id.
Trait Implementations§
Source§impl Clone for CurrentUserResponse
impl Clone for CurrentUserResponse
Source§fn clone(&self) -> CurrentUserResponse
fn clone(&self) -> CurrentUserResponse
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 CurrentUserResponse
impl Debug for CurrentUserResponse
Source§impl<'de> Deserialize<'de> for CurrentUserResponse
impl<'de> Deserialize<'de> for CurrentUserResponse
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
Auto Trait Implementations§
impl Freeze for CurrentUserResponse
impl RefUnwindSafe for CurrentUserResponse
impl Send for CurrentUserResponse
impl Sync for CurrentUserResponse
impl Unpin for CurrentUserResponse
impl UnsafeUnpin for CurrentUserResponse
impl UnwindSafe for CurrentUserResponse
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