pub enum OrderType {
Market,
Limit,
}
Expand description
Defines the available order types
Variants
Market
aggressive market order
Limit
passive limit order
Implementations
sourceimpl OrderType
impl OrderType
sourcepub fn as_integer(&self) -> u64
pub fn as_integer(&self) -> u64
Return the integer representation of this enum
sourcepub fn from_integer(val: u64) -> Result<Self>
pub fn from_integer(val: u64) -> Result<Self>
Parse the OrderType from integer value
Trait Implementations
sourceimpl<'de> Deserialize<'de> for OrderType
impl<'de> Deserialize<'de> for OrderType
sourcefn 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
impl Copy for OrderType
impl Eq for OrderType
impl StructuralEq for OrderType
impl StructuralPartialEq for OrderType
Auto Trait Implementations
impl RefUnwindSafe for OrderType
impl Send for OrderType
impl Sync for OrderType
impl Unpin for OrderType
impl UnwindSafe for OrderType
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more