pub enum CongestionReason {
OpenMarket,
PlaceLimit,
Update,
SetTrigger,
}
Expand description
What was the user doing when they hit the congestion error message?
Variants§
OpenMarket
Opening a new position via market order
PlaceLimit
Placing a new limit order
Update
Updating an existing position
SetTrigger
Setting a trigger price on an existing position
Trait Implementations§
§impl Clone for CongestionReason
impl Clone for CongestionReason
§fn clone(&self) -> CongestionReason
fn clone(&self) -> CongestionReason
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 more§impl Debug for CongestionReason
impl Debug for CongestionReason
§impl<'de> Deserialize<'de> for CongestionReason
impl<'de> Deserialize<'de> for CongestionReason
§fn deserialize<__D>(
__deserializer: __D
) -> Result<CongestionReason, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>( __deserializer: __D ) -> Result<CongestionReason, <__D as Deserializer<'de>>::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl Hash for CongestionReason
impl Hash for CongestionReason
§impl PartialEq for CongestionReason
impl PartialEq for CongestionReason
§fn eq(&self, other: &CongestionReason) -> bool
fn eq(&self, other: &CongestionReason) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.§impl Serialize for CongestionReason
impl Serialize for CongestionReason
§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where __S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Copy for CongestionReason
impl Eq for CongestionReason
impl StructuralEq for CongestionReason
impl StructuralPartialEq for CongestionReason
Auto Trait Implementations§
impl RefUnwindSafe for CongestionReason
impl Send for CongestionReason
impl Sync for CongestionReason
impl Unpin for CongestionReason
impl UnwindSafe for CongestionReason
Blanket Implementations§
§impl<U> As for U
impl<U> As for U
§fn as_<T>(self) -> Twhere
T: CastFrom<U>,
fn as_<T>(self) -> Twhere T: CastFrom<U>,
Casts
self
to type T
. The semantics of numeric casting with the as
operator are followed, so <T as As>::as_::<U>
can be used in the same way as T as U
for numeric conversions. Read moresource§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
§impl<T> QueryResultExt for Twhere
T: Serialize,
impl<T> QueryResultExt for Twhere T: Serialize,
§fn query_result(&self) -> Result<Binary, Error>
fn query_result(&self) -> Result<Binary, Error>
Convert the value to its JSON representation