#[repr(u8)]pub enum Status {
Show 14 variants
Amended = 0,
Deleted = 1,
FullyClosed = 2,
Opened = 3,
PartiallyClosed = 4,
Closed = 5,
Open = 6,
Updated = 7,
Accepted = 8,
Rejected = 9,
Working = 10,
Filled = 11,
Cancelled = 12,
Expired = 13,
}Expand description
Represents the status of an order or transaction in the system.
This enum covers various states an order can be in throughout its lifecycle, from creation to completion or cancellation.
Variants§
Amended = 0
Order has been amended or modified after initial creation
Deleted = 1
Order has been deleted from the system
FullyClosed = 2
Order has been completely closed with all positions resolved
Opened = 3
Order has been opened and is active in the market
PartiallyClosed = 4
Order has been partially closed with some positions still open
Closed = 5
Order has been closed but may differ from FullyClosed in context
Open = 6
Default state - order is open and active in the market
Updated = 7
Order has been updated with new parameters
Accepted = 8
Order has been accepted by the system or exchange
Rejected = 9
Order has been rejected by the system or exchange
Working = 10
Order is currently working (waiting to be filled)
Filled = 11
Order has been filled (executed)
Cancelled = 12
Order has been cancelled
Expired = 13
Order has expired (time in force elapsed)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Status
impl<'de> Deserialize<'de> for Status
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>,
impl Copy for Status
impl Eq for Status
impl StructuralPartialEq for Status
Auto Trait Implementations§
impl Freeze for Status
impl RefUnwindSafe for Status
impl Send for Status
impl Sync for Status
impl Unpin for Status
impl UnsafeUnpin for Status
impl UnwindSafe for Status
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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 moreSource§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.