pub struct MovePositionTrade {
pub instrument_name: String,
pub amount: f64,
pub price: Option<f64>,
}Expand description
Trade specification for move_positions request
Fields§
§instrument_name: StringInstrument name (e.g., “BTC-PERPETUAL”)
amount: f64Amount to move
price: Option<f64>Optional price at which to move the position
Implementations§
Trait Implementations§
Source§impl Clone for MovePositionTrade
impl Clone for MovePositionTrade
Source§fn clone(&self) -> MovePositionTrade
fn clone(&self) -> MovePositionTrade
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 MovePositionTrade
impl Debug for MovePositionTrade
Source§impl<'de> Deserialize<'de> for MovePositionTrade
impl<'de> Deserialize<'de> for MovePositionTrade
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 MovePositionTrade
impl RefUnwindSafe for MovePositionTrade
impl Send for MovePositionTrade
impl Sync for MovePositionTrade
impl Unpin for MovePositionTrade
impl UnsafeUnpin for MovePositionTrade
impl UnwindSafe for MovePositionTrade
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