Enum OrderRemovalReason
#[repr(i32)]pub enum OrderRemovalReason {
Show 16 variants
Unspecified = 0,
Expired = 1,
UserCanceled = 2,
Undercollateralized = 3,
InternalError = 4,
SelfTradeError = 5,
PostOnlyWouldCrossMakerOrder = 6,
ImmediateOrCancelWouldRestOnBook = 7,
FokOrderCouldNotBeFullyFulled = 8,
ReduceOnlyResize = 9,
IndexerExpired = 10,
Replaced = 11,
FullyFilled = 12,
EquityTier = 13,
FinalSettlement = 14,
ViolatesIsolatedSubaccountConstraints = 15,
}Expand description
OrderRemovalReason is an enum of all the reasons an order was removed.
Variants§
Unspecified = 0
Default value, this is invalid and unused.
Expired = 1
The order was removed due to being expired.
UserCanceled = 2
The order was removed due to being canceled by a user.
Undercollateralized = 3
The order was removed due to being undercollateralized.
InternalError = 4
The order caused an internal error during order placement and was removed.
SelfTradeError = 5
The order would have matched against another order placed by the same subaccount and was removed.
PostOnlyWouldCrossMakerOrder = 6
The order would have matched against maker orders on the orderbook despite being a post-only order and was removed.
ImmediateOrCancelWouldRestOnBook = 7
The order was an ICO order and would have been placed on the orderbook as resting liquidity and was removed.
FokOrderCouldNotBeFullyFulled = 8
The order was a fill-or-kill order that could not be fully filled and was removed.
ReduceOnlyResize = 9
The order was a reduce-only order that was removed due to either:
- being a taker order and fully-filling the order would flip the side of the subaccount’s position, in this case the remaining size of the order is removed
- being a maker order resting on the book and being removed when either the subaccount’s position is closed or flipped sides
IndexerExpired = 10
The order should be expired, according to the Indexer’s cached data, but the Indexer has yet to receive a message to remove the order. In order to keep the data cached by the Indexer up-to-date and accurate, clear out the data if it’s expired by sending an order removal with this reason. Protocol should never send this reason to Indexer.
Replaced = 11
The order has been replaced.
FullyFilled = 12
The order has been fully-filled. Only sent by the Indexer for stateful orders.
EquityTier = 13
The order has been removed since the subaccount does not satisfy the equity tier requirements.
FinalSettlement = 14
The order has been removed since its ClobPair has entered final settlement.
ViolatesIsolatedSubaccountConstraints = 15
The order has been removed since filling it would lead to the subaccount violating isolated subaccount constraints.
Implementations§
§impl OrderRemovalReason
impl OrderRemovalReason
§impl OrderRemovalReason
impl OrderRemovalReason
pub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn from_str_name(value: &str) -> Option<OrderRemovalReason>
pub fn from_str_name(value: &str) -> Option<OrderRemovalReason>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
§impl Clone for OrderRemovalReason
impl Clone for OrderRemovalReason
§fn clone(&self) -> OrderRemovalReason
fn clone(&self) -> OrderRemovalReason
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more§impl Debug for OrderRemovalReason
impl Debug for OrderRemovalReason
§impl Default for OrderRemovalReason
impl Default for OrderRemovalReason
§fn default() -> OrderRemovalReason
fn default() -> OrderRemovalReason
§impl Hash for OrderRemovalReason
impl Hash for OrderRemovalReason
§impl Ord for OrderRemovalReason
impl Ord for OrderRemovalReason
§impl PartialEq for OrderRemovalReason
impl PartialEq for OrderRemovalReason
§impl PartialOrd for OrderRemovalReason
impl PartialOrd for OrderRemovalReason
§impl TryFrom<i32> for OrderRemovalReason
impl TryFrom<i32> for OrderRemovalReason
§type Error = UnknownEnumValue
type Error = UnknownEnumValue
§fn try_from(value: i32) -> Result<OrderRemovalReason, UnknownEnumValue>
fn try_from(value: i32) -> Result<OrderRemovalReason, UnknownEnumValue>
impl Copy for OrderRemovalReason
impl Eq for OrderRemovalReason
impl StructuralPartialEq for OrderRemovalReason
Auto Trait Implementations§
impl Freeze for OrderRemovalReason
impl RefUnwindSafe for OrderRemovalReason
impl Send for OrderRemovalReason
impl Sync for OrderRemovalReason
impl Unpin for OrderRemovalReason
impl UnwindSafe for OrderRemovalReason
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
clone_to_uninit)§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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>
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>
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§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Layered].