pub struct AxWhoAmI {
pub id: String,
pub username: String,
pub created_at: DateTime<Utc>,
pub enabled_2fa: bool,
pub is_onboarded: bool,
pub is_frozen: bool,
pub is_admin: bool,
pub is_close_only: bool,
pub maker_fee: Decimal,
pub taker_fee: Decimal,
}Expand description
Response payload returned by GET /whoami.
§References
Fields§
§id: StringUser account UUID.
username: StringUsername for the account.
created_at: DateTime<Utc>Account creation timestamp.
enabled_2fa: boolWhether two-factor authentication is enabled.
is_onboarded: boolWhether the user has completed onboarding.
is_frozen: boolWhether the account is frozen.
is_admin: boolWhether the user has admin privileges.
is_close_only: boolWhether the account is in close-only mode.
maker_fee: DecimalMaker fee rate.
taker_fee: DecimalTaker fee rate.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for AxWhoAmI
impl<'de> Deserialize<'de> for AxWhoAmI
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 AxWhoAmI
impl RefUnwindSafe for AxWhoAmI
impl Send for AxWhoAmI
impl Sync for AxWhoAmI
impl Unpin for AxWhoAmI
impl UnwindSafe for AxWhoAmI
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more