pub struct StoreTransaction {
pub deal_date: DateTime<Utc>,
pub underlying: Option<String>,
pub strike: Option<f64>,
pub option_type: Option<String>,
pub expiry: Option<NaiveDate>,
pub transaction_type: String,
pub pnl_eur: f64,
pub reference: String,
pub is_fee: bool,
pub raw_json: String,
}Expand description
Represents a processed transaction from IG Markets with parsed fields
Fields§
§deal_date: DateTime<Utc>Date and time when the transaction was executed
underlying: Option<String>Underlying asset or instrument (e.g., “GOLD”, “US500”)
strike: Option<f64>Strike price for options
option_type: Option<String>Type of option (“CALL” or “PUT”)
expiry: Option<NaiveDate>Expiration date for options
transaction_type: StringType of transaction (e.g., “DEAL”, “WITH”)
pnl_eur: f64Profit and loss in EUR
reference: StringUnique reference for the transaction
is_fee: boolWhether this transaction is a fee
raw_json: StringOriginal JSON string of the transaction
Trait Implementations§
Source§impl Clone for StoreTransaction
impl Clone for StoreTransaction
Source§fn clone(&self) -> StoreTransaction
fn clone(&self) -> StoreTransaction
Returns a duplicate of the value. Read more
1.0.0 · 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 StoreTransaction
impl Debug for StoreTransaction
Source§impl Default for StoreTransaction
impl Default for StoreTransaction
Source§fn default() -> StoreTransaction
fn default() -> StoreTransaction
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for StoreTransaction
impl<'de> Deserialize<'de> for StoreTransaction
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 Display for StoreTransaction
impl Display for StoreTransaction
Source§impl From<&AccountTransaction> for StoreTransaction
impl From<&AccountTransaction> for StoreTransaction
Source§fn from(raw: &AccountTransaction) -> Self
fn from(raw: &AccountTransaction) -> Self
Converts to this type from the input type.
Source§impl From<AccountTransaction> for StoreTransaction
impl From<AccountTransaction> for StoreTransaction
Source§fn from(raw: AccountTransaction) -> Self
fn from(raw: AccountTransaction) -> Self
Converts to this type from the input type.
Source§impl PartialEq for StoreTransaction
impl PartialEq for StoreTransaction
Source§impl Serialize for StoreTransaction
impl Serialize for StoreTransaction
impl StructuralPartialEq for StoreTransaction
Auto Trait Implementations§
impl Freeze for StoreTransaction
impl RefUnwindSafe for StoreTransaction
impl Send for StoreTransaction
impl Sync for StoreTransaction
impl Unpin for StoreTransaction
impl UnwindSafe for StoreTransaction
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,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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 moreSource§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.