Enum lfest::OrderError
source · [−]pub enum OrderError {
MaxActiveOrders,
InvalidLimitPrice,
InvalidTriggerPrice,
InvalidOrderSize,
NotEnoughAvailableBalance,
}
Expand description
Defines the possible order errors that can occur when submitting a new order
Variants
MaxActiveOrders
Maximum number of active orders reached
InvalidLimitPrice
Invalid limit price of order
InvalidTriggerPrice
Invalid trigger price for order
InvalidOrderSize
Invalid order size
NotEnoughAvailableBalance
The account does not have enought available balance to submit the order
Trait Implementations
sourceimpl Clone for OrderError
impl Clone for OrderError
sourcefn clone(&self) -> OrderError
fn clone(&self) -> OrderError
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for OrderError
impl Debug for OrderError
sourceimpl<'de> Deserialize<'de> for OrderError
impl<'de> Deserialize<'de> for OrderError
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
sourceimpl Display for OrderError
impl Display for OrderError
sourceimpl Error for OrderError
impl Error for OrderError
1.30.0 · sourcefn 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 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
sourceimpl Serialize for OrderError
impl Serialize for OrderError
impl Copy for OrderError
Auto Trait Implementations
impl RefUnwindSafe for OrderError
impl Send for OrderError
impl Sync for OrderError
impl Unpin for OrderError
impl UnwindSafe for OrderError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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