kraken_async_rs::wss::v2::user_data_messages

Struct ExecutionResult

Source
pub struct ExecutionResult {
Show 44 fields pub amended: Option<bool>, pub execution_type: ExecutionType, pub cash_order_quantity: Option<Decimal>, pub client_order_id: Option<String>, pub contingent: Option<ConditionalParams>, pub cost: Option<Decimal>, pub execution_id: Option<String>, pub fees: Option<Vec<Fee>>, pub liquidity_indicator: Option<MakerTaker>, pub last_price: Option<Decimal>, pub last_quantity: Option<Decimal>, pub average_price: Option<Decimal>, pub reason: Option<String>, pub cumulative_cost: Option<Decimal>, pub cumulative_quantity: Option<Decimal>, pub display_quantity: Option<Decimal>, pub effective_time: Option<String>, pub expire_time: Option<String>, pub ext_ord_id: Option<String>, pub ext_exec_id: Option<String>, pub fee_preference: Option<FeePreference>, pub fee_usd_equivalent: Option<Decimal>, pub limit_price: Option<Decimal>, pub limit_price_type: Option<PriceType>, pub liquidated: Option<bool>, pub margin: Option<bool>, pub margin_borrow: Option<bool>, pub no_market_price_protection: Option<bool>, pub order_ref_id: Option<i64>, pub order_id: String, pub order_quantity: Option<Decimal>, pub order_type: Option<OrderType>, pub order_status: OrderStatusV2, pub order_user_ref: Option<i64>, pub post_only: Option<bool>, pub position_status: Option<PositionStatusV2>, pub reduce_only: Option<bool>, pub sender_sub_id: Option<String>, pub side: Option<BuySell>, pub symbol: Option<String>, pub time_in_force: Option<TimeInForce>, pub timestamp: String, pub trade_id: Option<i64>, pub triggers: Option<TriggerDescription>,
}

Fields§

§amended: Option<bool>§execution_type: ExecutionType§cash_order_quantity: Option<Decimal>§client_order_id: Option<String>§contingent: Option<ConditionalParams>§cost: Option<Decimal>§execution_id: Option<String>§fees: Option<Vec<Fee>>§liquidity_indicator: Option<MakerTaker>§last_price: Option<Decimal>§last_quantity: Option<Decimal>§average_price: Option<Decimal>§reason: Option<String>§cumulative_cost: Option<Decimal>§cumulative_quantity: Option<Decimal>§display_quantity: Option<Decimal>§effective_time: Option<String>§expire_time: Option<String>§ext_ord_id: Option<String>§ext_exec_id: Option<String>§fee_preference: Option<FeePreference>§fee_usd_equivalent: Option<Decimal>§limit_price: Option<Decimal>§limit_price_type: Option<PriceType>§liquidated: Option<bool>§margin: Option<bool>§margin_borrow: Option<bool>§no_market_price_protection: Option<bool>§order_ref_id: Option<i64>§order_id: String§order_quantity: Option<Decimal>§order_type: Option<OrderType>§order_status: OrderStatusV2§order_user_ref: Option<i64>§post_only: Option<bool>§position_status: Option<PositionStatusV2>§reduce_only: Option<bool>§sender_sub_id: Option<String>§side: Option<BuySell>§symbol: Option<String>§time_in_force: Option<TimeInForce>§timestamp: String§trade_id: Option<i64>§triggers: Option<TriggerDescription>

Trait Implementations§

Source§

impl Debug for ExecutionResult

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for ExecutionResult

Source§

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 ExecutionResult

Source§

fn eq(&self, other: &ExecutionResult) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl StructuralPartialEq for ExecutionResult

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

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

fn in_current_span(self) -> Instrumented<Self>

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

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

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

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> ErasedDestructor for T
where T: 'static,

Source§

impl<T> MaybeSendSync for T