#[repr(C)]pub struct MatchingEngineResponse {
pub num_quote_lots_in: QuoteLots,
pub num_base_lots_in: BaseLots,
pub num_quote_lots_out: QuoteLots,
pub num_base_lots_out: BaseLots,
pub num_quote_lots_posted: QuoteLots,
pub num_base_lots_posted: BaseLots,
pub num_free_quote_lots_used: QuoteLots,
pub num_free_base_lots_used: BaseLots,
}Fields§
§num_quote_lots_in: QuoteLots§num_base_lots_in: BaseLots§num_quote_lots_out: QuoteLots§num_base_lots_out: BaseLots§num_quote_lots_posted: QuoteLots§num_base_lots_posted: BaseLots§num_free_quote_lots_used: QuoteLots§num_free_base_lots_used: BaseLotsImplementations§
Source§impl MatchingEngineResponse
impl MatchingEngineResponse
pub fn new_from_buy( num_quote_lots_in: QuoteLots, num_base_lots_out: BaseLots, ) -> Self
pub fn new_from_sell( num_base_lots_in: BaseLots, num_quote_lots_out: QuoteLots, ) -> Self
pub fn new_withdraw( num_base_lots_out: BaseLots, num_quote_lots_out: QuoteLots, ) -> Self
pub fn post_quote_lots(&mut self, num_quote_lots: QuoteLots)
pub fn post_base_lots(&mut self, num_base_lots: BaseLots)
pub fn num_base_lots(&self) -> BaseLots
pub fn num_quote_lots(&self) -> QuoteLots
pub fn use_free_quote_lots(&mut self, num_quote_lots: QuoteLots)
pub fn use_free_base_lots(&mut self, num_base_lots: BaseLots)
pub fn get_deposit_amount_bid_in_quote_lots(&self) -> QuoteLots
pub fn get_deposit_amount_ask_in_base_lots(&self) -> BaseLots
pub fn verify_no_deposit(&self) -> bool
pub fn verify_no_withdrawal(&self) -> bool
Trait Implementations§
Source§impl Clone for MatchingEngineResponse
impl Clone for MatchingEngineResponse
Source§fn clone(&self) -> MatchingEngineResponse
fn clone(&self) -> MatchingEngineResponse
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 MatchingEngineResponse
impl Debug for MatchingEngineResponse
Source§impl Default for MatchingEngineResponse
impl Default for MatchingEngineResponse
Source§fn default() -> MatchingEngineResponse
fn default() -> MatchingEngineResponse
Returns the “default value” for a type. Read more
Source§impl PartialEq for MatchingEngineResponse
impl PartialEq for MatchingEngineResponse
impl Copy for MatchingEngineResponse
impl Eq for MatchingEngineResponse
impl StructuralPartialEq for MatchingEngineResponse
Auto Trait Implementations§
impl Freeze for MatchingEngineResponse
impl RefUnwindSafe for MatchingEngineResponse
impl Send for MatchingEngineResponse
impl Sync for MatchingEngineResponse
impl Unpin for MatchingEngineResponse
impl UnwindSafe for MatchingEngineResponse
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> 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