Enum lfest::prelude::OrderError
source · pub enum OrderError {
Show 15 variants
MaxActiveOrders,
LimitPriceBelowMultiple,
LimitPriceBelowMin,
LimitPriceLTEZero,
LimitPriceAboveMultiple,
LimitPriceAboveMax,
LimitPriceAboveAsk,
LimitPriceBelowBid,
InvalidOrderPriceStepSize,
InvalidTriggerPrice,
OrderSizeLTEZero,
NotEnoughAvailableBalance,
QuantityTooLow,
QuantityTooHigh,
InvalidQuantityStepSize,
}
Expand description
Defines the possible order errors that can occur when submitting a new order
Variants§
MaxActiveOrders
LimitPriceBelowMultiple
LimitPriceBelowMin
LimitPriceLTEZero
LimitPriceAboveMultiple
LimitPriceAboveMax
LimitPriceAboveAsk
LimitPriceBelowBid
InvalidOrderPriceStepSize
InvalidTriggerPrice
OrderSizeLTEZero
NotEnoughAvailableBalance
QuantityTooLow
QuantityTooHigh
InvalidQuantityStepSize
Trait Implementations§
source§impl Clone for OrderError
impl Clone for OrderError
source§fn clone(&self) -> OrderError
fn clone(&self) -> OrderError
Returns a copy 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 OrderError
impl Debug for OrderError
source§impl<'de> Deserialize<'de> for OrderError
impl<'de> Deserialize<'de> for OrderError
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
source§impl Display for OrderError
impl Display for OrderError
source§impl Error for OrderError
impl Error for OrderError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl From<OrderError> for Error
impl From<OrderError> for Error
source§fn from(source: OrderError) -> Self
fn from(source: OrderError) -> Self
Converts to this type from the input type.
source§impl PartialEq for OrderError
impl PartialEq for OrderError
source§fn eq(&self, other: &OrderError) -> bool
fn eq(&self, other: &OrderError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for OrderError
impl Serialize for OrderError
impl Copy for OrderError
impl Eq for OrderError
impl StructuralPartialEq for OrderError
Auto Trait Implementations§
impl Freeze for OrderError
impl RefUnwindSafe for OrderError
impl Send for OrderError
impl Sync for OrderError
impl Unpin for OrderError
impl UnwindSafe for OrderError
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