pub struct OrderStatus {
pub order_id: String,
pub order_link_id: String,
}Expand description
Represents the status of an order, including its identifiers.
This struct provides the order_id and order_link_id for an order, used in
responses for order placement, amendment, or cancellation. In perpetual futures,
bots use this to track orders and correlate API responses with internal state.
Fields§
§order_id: StringThe unique identifier of the order provided by Bybit.
Used to reference the order in API requests and responses. Bots must store this to manage orders effectively in perpetual futures trading.
order_link_id: StringThe user-defined identifier of the order.
Allows bots to track orders using custom IDs. Essential for complex strategies in perpetual futures where multiple orders are active.
Trait Implementations§
Source§impl Clone for OrderStatus
impl Clone for OrderStatus
Source§fn clone(&self) -> OrderStatus
fn clone(&self) -> OrderStatus
Returns a duplicate 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 OrderStatus
impl Debug for OrderStatus
Source§impl<'de> Deserialize<'de> for OrderStatus
impl<'de> Deserialize<'de> for OrderStatus
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
Auto Trait Implementations§
impl Freeze for OrderStatus
impl RefUnwindSafe for OrderStatus
impl Send for OrderStatus
impl Sync for OrderStatus
impl Unpin for OrderStatus
impl UnsafeUnpin for OrderStatus
impl UnwindSafe for OrderStatus
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