pub struct TradeResultMsg {
pub position_id: String,
pub symbol: String,
pub side: String,
pub entry_price: f64,
pub exit_price: f64,
pub size: f64,
pub pnl: f64,
pub open_ts: String,
pub close_ts: String,
pub close_reason: String,
pub group: Option<String>,
}Expand description
Wire-safe mirror of TradeResult.
Fields§
§position_id: String§symbol: String§side: String§entry_price: f64§exit_price: f64§size: f64§pnl: f64§open_ts: String§close_ts: String§close_reason: String§group: Option<String>Trait Implementations§
Source§impl Clone for TradeResultMsg
impl Clone for TradeResultMsg
Source§fn clone(&self) -> TradeResultMsg
fn clone(&self) -> TradeResultMsg
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 TradeResultMsg
impl Debug for TradeResultMsg
Source§impl<'de> Deserialize<'de> for TradeResultMsg
impl<'de> Deserialize<'de> for TradeResultMsg
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 TradeResultMsg
impl RefUnwindSafe for TradeResultMsg
impl Send for TradeResultMsg
impl Sync for TradeResultMsg
impl Unpin for TradeResultMsg
impl UnsafeUnpin for TradeResultMsg
impl UnwindSafe for TradeResultMsg
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