pub struct Transaction {
Show 15 fields pub date: DateTime<FixedOffset>, pub trade_type: String, pub action: Option<TradeAction>, pub symbol: Option<String>, pub instrument_type: Option<String>, pub description: String, pub value: Decimal, pub quantity: Decimal, pub average_price: Option<Decimal>, pub commissions: Option<Decimal>, pub fees: Decimal, pub multiplier: Option<i32>, pub expiration_date: Option<TransactionExpiration>, pub strike_price: Option<Decimal>, pub call_or_put: Option<OptionTypeUpperCase>,
}

Fields

date: DateTime<FixedOffset>trade_type: Stringaction: Option<TradeAction>symbol: Option<String>instrument_type: Option<String>description: Stringvalue: Decimalquantity: Decimalaverage_price: Option<Decimal>commissions: Option<Decimal>fees: Decimalmultiplier: Option<i32>expiration_date: Option<TransactionExpiration>strike_price: Option<Decimal>call_or_put: Option<OptionTypeUpperCase>

Implementations

Trait Implementations

Formats the value using the given formatter. Read more
Deserialize this value from the given Serde deserializer. Read more
Converts to this type from the input type.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self
The inverse inclusion map: attempts to construct self from the equivalent element of its superset. Read more
Checks if self is actually part of its subset T (and can be converted to it).
Use with care! Same as self.to_subset but without any property checks. Always succeeds.
The inclusion map: converts self to the equivalent element of its superset.
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more