pub struct TradeUpdate {
pub account_id: String,
pub confirms: Option<TradeConfirm>,
pub opu: Option<OpenPositionUpdate>,
pub wou: Option<WorkingOrderUpdate>,
}Available on crate feature
stream only.Expand description
An update from a TRADE:<accountId> subscription.
CONFIRMS, OPU, and WOU fields are JSON-encoded strings on the wire;
they are decoded here into structured types.
Fields§
§account_id: StringThe account ID this update belongs to.
confirms: Option<TradeConfirm>Trade confirmation (deal accepted/rejected).
opu: Option<OpenPositionUpdate>Open-position update.
wou: Option<WorkingOrderUpdate>Working-order update.
Implementations§
Trait Implementations§
Source§impl Clone for TradeUpdate
impl Clone for TradeUpdate
Source§fn clone(&self) -> TradeUpdate
fn clone(&self) -> TradeUpdate
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 moreAuto Trait Implementations§
impl Freeze for TradeUpdate
impl RefUnwindSafe for TradeUpdate
impl Send for TradeUpdate
impl Sync for TradeUpdate
impl Unpin for TradeUpdate
impl UnsafeUnpin for TradeUpdate
impl UnwindSafe for TradeUpdate
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 more