pub struct MovePositionResult {
pub target_uid: u64,
pub source_uid: u64,
pub price: f64,
pub instrument_name: String,
pub direction: String,
pub amount: f64,
}Expand description
Result of a single position move
Fields§
§target_uid: u64Target subaccount ID
source_uid: u64Source subaccount ID
price: f64Price at which the position was moved
instrument_name: StringInstrument name
direction: StringDirection of the position (buy/sell)
amount: f64Amount that was moved
Trait Implementations§
Source§impl Clone for MovePositionResult
impl Clone for MovePositionResult
Source§fn clone(&self) -> MovePositionResult
fn clone(&self) -> MovePositionResult
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 MovePositionResult
impl Debug for MovePositionResult
Source§impl<'de> Deserialize<'de> for MovePositionResult
impl<'de> Deserialize<'de> for MovePositionResult
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 MovePositionResult
impl RefUnwindSafe for MovePositionResult
impl Send for MovePositionResult
impl Sync for MovePositionResult
impl Unpin for MovePositionResult
impl UnsafeUnpin for MovePositionResult
impl UnwindSafe for MovePositionResult
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