pub struct USAssetOverview {
pub account_type: String,
pub asset_timestamp: Option<OffsetDateTime>,
pub cash_buy_power: String,
pub overnight_buy_power: String,
pub currency: String,
pub cash_list: Vec<USCashEntry>,
pub stock_list: Vec<USStockEntry>,
pub option_list: Vec<Value>,
pub crypto_list: Vec<USCryptoEntry>,
pub multi_leg: Value,
}Expand description
Response for crate::TradeContext::us_asset_overview.
Field names match the actual API response from GET /v1/us/assets/overview.
Fields§
§account_type: String§asset_timestamp: Option<OffsetDateTime>Account snapshot timestamp (Unix-second string → OffsetDateTime).
cash_buy_power: StringCash buying power (top-level convenience field).
overnight_buy_power: String§currency: String§cash_list: Vec<USCashEntry>§stock_list: Vec<USStockEntry>§option_list: Vec<Value>§crypto_list: Vec<USCryptoEntry>§multi_leg: ValueTrait Implementations§
Source§impl Clone for USAssetOverview
impl Clone for USAssetOverview
Source§fn clone(&self) -> USAssetOverview
fn clone(&self) -> USAssetOverview
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 USAssetOverview
impl Debug for USAssetOverview
Source§impl Default for USAssetOverview
impl Default for USAssetOverview
Source§fn default() -> USAssetOverview
fn default() -> USAssetOverview
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for USAssetOverview
impl<'de> Deserialize<'de> for USAssetOverview
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 USAssetOverview
impl RefUnwindSafe for USAssetOverview
impl Send for USAssetOverview
impl Sync for USAssetOverview
impl Unpin for USAssetOverview
impl UnsafeUnpin for USAssetOverview
impl UnwindSafe for USAssetOverview
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