pub struct PostedLimitOrder {
pub direction: Direction,
pub lots: u32,
pub price: f64,
pub broker_id: String,
pub transactions: Vec<Transaction>,
}Fields§
§direction: Direction§lots: u32§price: f64§broker_id: String§transactions: Vec<Transaction>Implementations§
Source§impl PostedLimitOrder
impl PostedLimitOrder
pub fn add_transaction(&mut self, t: Transaction)
pub fn fill(self, ts_nanos: i64, commission: f64) -> FilledLimitOrder
pub fn cancel(self) -> CanceledLimitOrder
Trait Implementations§
Source§impl Clone for PostedLimitOrder
impl Clone for PostedLimitOrder
Source§fn clone(&self) -> PostedLimitOrder
fn clone(&self) -> PostedLimitOrder
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 PostedLimitOrder
impl Debug for PostedLimitOrder
impl<'__de> Decode<'__de> for PostedLimitOrderwhere
'__de:,
Source§impl Display for PostedLimitOrder
impl Display for PostedLimitOrder
impl Encode for PostedLimitOrder
Source§impl PartialEq for PostedLimitOrder
impl PartialEq for PostedLimitOrder
Source§fn eq(&self, other: &PostedLimitOrder) -> bool
fn eq(&self, other: &PostedLimitOrder) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PostedLimitOrder
Auto Trait Implementations§
impl Freeze for PostedLimitOrder
impl RefUnwindSafe for PostedLimitOrder
impl Send for PostedLimitOrder
impl Sync for PostedLimitOrder
impl Unpin for PostedLimitOrder
impl UnsafeUnpin for PostedLimitOrder
impl UnwindSafe for PostedLimitOrder
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DecodeOwned for Twhere
T: for<'de> Decode<'de>,
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> Key for Twhere
T: Clone,
impl<T> Key for Twhere
T: Clone,
impl<T> PlanCallbackArgs for T
impl<T> PlanCallbackOut for T
Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
Source§fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
Fallible version of
ToCompactString::to_compact_string() Read moreSource§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
Converts the given value to a
CompactString. Read more