pub struct ClosePositionRequest {
pub client_order_id: String,
pub product_id: String,
pub size: Option<String>,
}Expand description
Request to close a position.
Fields§
§client_order_id: StringClient order ID.
product_id: StringProduct ID.
size: Option<String>Size to close (optional, closes entire position if not specified).
Implementations§
Trait Implementations§
Source§impl Clone for ClosePositionRequest
impl Clone for ClosePositionRequest
Source§fn clone(&self) -> ClosePositionRequest
fn clone(&self) -> ClosePositionRequest
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 ClosePositionRequest
impl Debug for ClosePositionRequest
Auto Trait Implementations§
impl Freeze for ClosePositionRequest
impl RefUnwindSafe for ClosePositionRequest
impl Send for ClosePositionRequest
impl Sync for ClosePositionRequest
impl Unpin for ClosePositionRequest
impl UnwindSafe for ClosePositionRequest
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