pub struct ExternalOrder {
pub quote_mint: String,
pub base_mint: String,
pub side: OrderSide,
pub base_amount: Amount,
pub quote_amount: Amount,
pub min_fill_size: Amount,
}Expand description
An external order
Fields§
§quote_mint: StringThe mint (erc20 address) of the quote token
base_mint: StringThe mint (erc20 address) of the base token
side: OrderSideThe side of the market this order is on
base_amount: AmountThe base amount of the order
quote_amount: AmountThe quote amount of the order
min_fill_size: AmountThe minimum fill size for the order
Trait Implementations§
Source§impl Clone for ExternalOrder
impl Clone for ExternalOrder
Source§fn clone(&self) -> ExternalOrder
fn clone(&self) -> ExternalOrder
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 ExternalOrder
impl Debug for ExternalOrder
Source§impl<'de> Deserialize<'de> for ExternalOrder
impl<'de> Deserialize<'de> for ExternalOrder
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ExternalOrder
impl RefUnwindSafe for ExternalOrder
impl Send for ExternalOrder
impl Sync for ExternalOrder
impl Unpin for ExternalOrder
impl UnsafeUnpin for ExternalOrder
impl UnwindSafe for ExternalOrder
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