pub struct OperationRecord {Show 16 fields
pub id: Option<String>,
pub date: Option<String>,
pub is_iia: Option<bool>,
pub ticker: Option<String>,
pub class_code: Option<String>,
pub operation_type: Option<String>,
pub status: Option<String>,
pub sum: Option<Decimal>,
pub currency: Option<String>,
pub is_rests_pay_out: Option<bool>,
pub isin: Option<String>,
pub issuer_name: Option<String>,
pub replenishment_type: Option<String>,
pub execution_period: Option<String>,
pub balance_change: Option<String>,
pub rejection_reason: Option<String>,
}Expand description
One non-trade operation (schema Operation): deposits, withdrawals, dividends, coupons,
commissions, taxes, securities in and out.
§Examples
use brokapi_bcs_protocol::http::models::OperationRecord;
let op: OperationRecord = serde_json::from_str(
r#"{"id":"op-1","type":"PayIn","status":"Approved","sum":1000.0,"currency":"RUB","balanceChange":"Positive"}"#,
)?;
assert_eq!(op.operation_type.as_deref(), Some("PayIn"));Fields§
§id: Option<String>Id of the operation.
date: Option<String>Date of the operation, kept as text.
is_iia: Option<bool>IIA (tax-advantaged account) flag.
ticker: Option<String>Ticker of the issuer, for securities operations.
class_code: Option<String>Class code of the issuer, for securities operations.
operation_type: Option<String>Operation type, see OperationHistoryRequest for the values.
status: Option<String>Approved, InProgress or Rejected.
sum: Option<Decimal>Amount of the operation.
currency: Option<String>Currency of the operation.
is_rests_pay_out: Option<bool>The whole remaining balance is withdrawn.
isin: Option<String>ISIN of the instrument.
issuer_name: Option<String>Name of the instrument (the broker docs say “name of the financial instrument”).
replenishment_type: Option<String>How the account was topped up.
execution_period: Option<String>Expected time to execute the operation.
balance_change: Option<String>Neutral, Negative or Positive.
rejection_reason: Option<String>Why the operation was rejected, if it was.
Trait Implementations§
Source§impl Clone for OperationRecord
impl Clone for OperationRecord
Source§fn clone(&self) -> OperationRecord
fn clone(&self) -> OperationRecord
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 OperationRecord
impl Debug for OperationRecord
Source§impl<'de> Deserialize<'de> for OperationRecord
impl<'de> Deserialize<'de> for OperationRecord
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 PartialEq for OperationRecord
impl PartialEq for OperationRecord
Source§fn eq(&self, other: &OperationRecord) -> bool
fn eq(&self, other: &OperationRecord) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for OperationRecord
Auto Trait Implementations§
impl Freeze for OperationRecord
impl RefUnwindSafe for OperationRecord
impl Send for OperationRecord
impl Sync for OperationRecord
impl Unpin for OperationRecord
impl UnsafeUnpin for OperationRecord
impl UnwindSafe for OperationRecord
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