pub struct AccountStatus {
pub active: bool,
pub trading_enabled: bool,
pub created_at: Option<DateTime<Utc>>,
pub last_login: Option<DateTime<Utc>>,
pub restrictions: Vec<String>,
pub kyc_status: Option<String>,
}
Expand description
Account status information
Fields§
§active: bool
Account is active
trading_enabled: bool
Trading is enabled
created_at: Option<DateTime<Utc>>
Account creation date
last_login: Option<DateTime<Utc>>
Last login timestamp
restrictions: Vec<String>
Account restrictions (if any)
kyc_status: Option<String>
KYC status
Implementations§
Source§impl AccountStatus
impl AccountStatus
Sourcepub fn has_restrictions(&self) -> bool
pub fn has_restrictions(&self) -> bool
Check if account has any restrictions
Sourcepub fn is_kyc_complete(&self) -> bool
pub fn is_kyc_complete(&self) -> bool
Check if KYC is complete
Trait Implementations§
Source§impl Clone for AccountStatus
impl Clone for AccountStatus
Source§fn clone(&self) -> AccountStatus
fn clone(&self) -> AccountStatus
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for AccountStatus
impl Debug for AccountStatus
Source§impl<'de> Deserialize<'de> for AccountStatus
impl<'de> Deserialize<'de> for AccountStatus
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 AccountStatus
impl RefUnwindSafe for AccountStatus
impl Send for AccountStatus
impl Sync for AccountStatus
impl Unpin for AccountStatus
impl UnwindSafe for AccountStatus
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