pub struct OrderCancelRequest {
pub cl_ord_id: Option<String>,
pub orig_cl_ord_id: Option<String>,
pub deribit_label: Option<String>,
pub symbol: Option<String>,
pub currency: Option<String>,
}Expand description
Order Cancel Request message (MsgType = ‘F’)
Fields§
§cl_ord_id: Option<String>Original order identifier assigned by the user (optional)
orig_cl_ord_id: Option<String>Order identifier assigned by Deribit (optional)
deribit_label: Option<String>Custom label for order (optional)
symbol: Option<String>Instrument symbol (required if OrigClOrdId is absent)
currency: Option<String>Currency to speed up search
Implementations§
Source§impl OrderCancelRequest
impl OrderCancelRequest
Sourcepub fn by_orig_cl_ord_id(orig_cl_ord_id: String) -> Self
pub fn by_orig_cl_ord_id(orig_cl_ord_id: String) -> Self
Create cancel request by original client order ID
Sourcepub fn by_cl_ord_id(cl_ord_id: String, symbol: String) -> Self
pub fn by_cl_ord_id(cl_ord_id: String, symbol: String) -> Self
Create cancel request by client order ID
Sourcepub fn by_deribit_label(deribit_label: String, symbol: String) -> Self
pub fn by_deribit_label(deribit_label: String, symbol: String) -> Self
Create cancel request by Deribit label
Sourcepub fn with_currency(self, currency: String) -> Self
pub fn with_currency(self, currency: String) -> Self
Set currency for faster search
Sourcepub fn to_fix_message(
&self,
sender_comp_id: &str,
target_comp_id: &str,
msg_seq_num: u32,
) -> DeribitFixResult<String>
pub fn to_fix_message( &self, sender_comp_id: &str, target_comp_id: &str, msg_seq_num: u32, ) -> DeribitFixResult<String>
Convert to FIX message
Trait Implementations§
Source§impl Clone for OrderCancelRequest
impl Clone for OrderCancelRequest
Source§fn clone(&self) -> OrderCancelRequest
fn clone(&self) -> OrderCancelRequest
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 OrderCancelRequest
impl Debug for OrderCancelRequest
Source§impl<'de> Deserialize<'de> for OrderCancelRequest
impl<'de> Deserialize<'de> for OrderCancelRequest
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
Source§impl Display for OrderCancelRequest
impl Display for OrderCancelRequest
Source§impl PartialEq for OrderCancelRequest
impl PartialEq for OrderCancelRequest
Source§impl Serialize for OrderCancelRequest
impl Serialize for OrderCancelRequest
impl StructuralPartialEq for OrderCancelRequest
Auto Trait Implementations§
impl Freeze for OrderCancelRequest
impl RefUnwindSafe for OrderCancelRequest
impl Send for OrderCancelRequest
impl Sync for OrderCancelRequest
impl Unpin for OrderCancelRequest
impl UnwindSafe for OrderCancelRequest
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> 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.