pub struct AccountResponse {
pub email: String,
pub first_name: Option<String>,
pub id: i64,
pub is_verified: bool,
pub last_name: Option<String>,
}Expand description
Account information response.
JSON schema
{
"title": "AccountResponse",
"description": "Account information response.",
"type": "object",
"required": [
"email",
"id",
"is_verified"
],
"properties": {
"email": {
"title": "Email",
"type": "string"
},
"first_name": {
"title": "First Name",
"type": [
"string",
"null"
]
},
"id": {
"title": "Id",
"type": "integer"
},
"is_verified": {
"title": "Is Verified",
"type": "boolean"
},
"last_name": {
"title": "Last Name",
"type": [
"string",
"null"
]
}
}
}Fields§
§email: String§first_name: Option<String>§id: i64§is_verified: bool§last_name: Option<String>Implementations§
Source§impl AccountResponse
impl AccountResponse
pub fn builder() -> AccountResponse
Trait Implementations§
Source§impl Clone for AccountResponse
impl Clone for AccountResponse
Source§fn clone(&self) -> AccountResponse
fn clone(&self) -> AccountResponse
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 AccountResponse
impl Debug for AccountResponse
Source§impl<'de> Deserialize<'de> for AccountResponse
impl<'de> Deserialize<'de> for AccountResponse
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<&AccountResponse> for AccountResponse
impl From<&AccountResponse> for AccountResponse
Source§fn from(value: &AccountResponse) -> Self
fn from(value: &AccountResponse) -> Self
Converts to this type from the input type.
Source§impl From<AccountResponse> for AccountResponse
impl From<AccountResponse> for AccountResponse
Source§fn from(value: AccountResponse) -> Self
fn from(value: AccountResponse) -> Self
Converts to this type from the input type.
Source§impl Serialize for AccountResponse
impl Serialize for AccountResponse
Source§impl TryFrom<AccountResponse> for AccountResponse
impl TryFrom<AccountResponse> for AccountResponse
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: AccountResponse) -> Result<Self, ConversionError>
fn try_from(value: AccountResponse) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for AccountResponse
impl RefUnwindSafe for AccountResponse
impl Send for AccountResponse
impl Sync for AccountResponse
impl Unpin for AccountResponse
impl UnwindSafe for AccountResponse
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