#[non_exhaustive]pub struct Transaction {Show 16 fields
pub activity_id: Option<i64>,
pub time: Option<String>,
pub user: Option<TransactionUser>,
pub description: Option<String>,
pub account_number: Option<String>,
pub type_: Option<TransactionType>,
pub status: Option<TransactionStatus>,
pub sub_account: Option<SubAccount>,
pub trade_date: Option<String>,
pub settlement_date: Option<String>,
pub position_id: Option<i64>,
pub order_id: Option<String>,
pub net_amount: Option<f64>,
pub activity_type: Option<TransactionActivityType>,
pub transfer_items: Vec<TransferItem>,
pub extra: HashMap<String, Value>,
}Expand description
A transaction as Schwab reports it: header fields plus one
TransferItem per instrument moved and per fee charged. There is no
top-level instrument or fee map; a trade’s security leg and each of its
fees are separate items, and the fees are the ones whose
fee_type is set.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.activity_id: Option<i64>§time: Option<String>§user: Option<TransactionUser>§description: Option<String>§account_number: Option<String>§type_: Option<TransactionType>Unknown for a category this release does not know.
status: Option<TransactionStatus>§sub_account: Option<SubAccount>§trade_date: Option<String>§settlement_date: Option<String>§position_id: Option<i64>§order_id: Option<String>§net_amount: Option<f64>§activity_type: Option<TransactionActivityType>§transfer_items: Vec<TransferItem>§extra: HashMap<String, Value>Trait Implementations§
Source§impl Clone for Transaction
impl Clone for Transaction
Source§impl Debug for Transaction
impl Debug for Transaction
Source§impl Default for Transaction
impl Default for Transaction
Source§impl<'de> Deserialize<'de> for Transaction
impl<'de> Deserialize<'de> for Transaction
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 JsonSchema for Transaction
impl JsonSchema for Transaction
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for Transaction
impl PartialEq for Transaction
Source§impl Serialize for Transaction
impl Serialize for Transaction
impl StructuralPartialEq for Transaction
Auto Trait Implementations§
impl Freeze for Transaction
impl RefUnwindSafe for Transaction
impl Send for Transaction
impl Sync for Transaction
impl Unpin for Transaction
impl UnsafeUnpin for Transaction
impl UnwindSafe for Transaction
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