pub struct AppUser {
pub account_type: Option<String>,
pub address: Option<AppUserAddress>,
pub can_withdraw: Option<bool>,
pub created_at: Option<String>,
pub email: Option<String>,
pub id: Option<Uuid>,
pub is_active: Option<bool>,
pub is_banned: Option<bool>,
pub master_account_id: Option<Uuid>,
pub updated_at: Option<String>,
pub username: Option<String>,
}Expand description
AppUser
JSON schema
{
"type": "object",
"properties": {
"account_type": {
"description": "Account type: master or sub",
"examples": [
"master"
],
"type": [
"string",
"null"
]
},
"address": {
"description": "Wallet address",
"type": [
"string",
"null"
],
"maxLength": 42,
"minLength": 42,
"pattern": "^0x[0-9a-fA-F]{40}$"
},
"can_withdraw": {
"description": "Whether the user is allowed to withdraw",
"examples": [
true
],
"type": [
"boolean",
"null"
]
},
"created_at": {
"description": "Account creation timestamp (ISO 8601)",
"examples": [
"2023-11-13T10:30:00Z"
],
"type": [
"string",
"null"
]
},
"email": {
"description": "Email address",
"type": [
"string",
"null"
]
},
"id": {
"description": "User UUID",
"examples": [
"123e4567-e89b-12d3-a456-426614174000"
],
"type": [
"string",
"null"
],
"format": "uuid"
},
"is_active": {
"description": "Whether the user account is active",
"examples": [
true
],
"type": [
"boolean",
"null"
]
},
"is_banned": {
"description": "Whether the user is banned",
"examples": [
false
],
"type": [
"boolean",
"null"
]
},
"master_account_id": {
"description": "Master account ID (for sub-accounts)",
"type": [
"string",
"null"
],
"format": "uuid"
},
"updated_at": {
"description": "Last update timestamp (ISO 8601)",
"examples": [
"2023-11-13T10:35:00Z"
],
"type": [
"string",
"null"
]
},
"username": {
"description": "Display username",
"examples": [
"trader123"
],
"type": [
"string",
"null"
]
}
}
}Fields§
§account_type: Option<String>Account type: master or sub
address: Option<AppUserAddress>Wallet address
can_withdraw: Option<bool>Whether the user is allowed to withdraw
created_at: Option<String>Account creation timestamp (ISO 8601)
email: Option<String>Email address
id: Option<Uuid>User UUID
is_active: Option<bool>Whether the user account is active
is_banned: Option<bool>Whether the user is banned
master_account_id: Option<Uuid>Master account ID (for sub-accounts)
updated_at: Option<String>Last update timestamp (ISO 8601)
username: Option<String>Display username
Trait Implementations§
Source§impl<'de> Deserialize<'de> for AppUser
impl<'de> Deserialize<'de> for AppUser
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 AppUser
impl RefUnwindSafe for AppUser
impl Send for AppUser
impl Sync for AppUser
impl Unpin for AppUser
impl UnsafeUnpin for AppUser
impl UnwindSafe for AppUser
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