pub struct CancelOrderParams {
pub category: Category,
pub symbol: String,
pub order_id: Option<String>,
pub order_link_id: Option<String>,
}Expand description
Cancel order request parameters.
Fields§
§category: CategoryProduct category
symbol: StringSymbol name
order_id: Option<String>Order ID
order_link_id: Option<String>User-defined order ID
Implementations§
Source§impl CancelOrderParams
impl CancelOrderParams
Sourcepub fn by_order_id(category: Category, symbol: &str, order_id: &str) -> Self
pub fn by_order_id(category: Category, symbol: &str, order_id: &str) -> Self
Create cancel params by order ID.
Sourcepub fn by_order_link_id(
category: Category,
symbol: &str,
order_link_id: &str,
) -> Self
pub fn by_order_link_id( category: Category, symbol: &str, order_link_id: &str, ) -> Self
Create cancel params by order link ID.
Trait Implementations§
Source§impl Clone for CancelOrderParams
impl Clone for CancelOrderParams
Source§fn clone(&self) -> CancelOrderParams
fn clone(&self) -> CancelOrderParams
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 CancelOrderParams
impl Debug for CancelOrderParams
Auto Trait Implementations§
impl Freeze for CancelOrderParams
impl RefUnwindSafe for CancelOrderParams
impl Send for CancelOrderParams
impl Sync for CancelOrderParams
impl Unpin for CancelOrderParams
impl UnsafeUnpin for CancelOrderParams
impl UnwindSafe for CancelOrderParams
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