pub struct TradeRecord {
pub regime: String,
pub side: String,
pub entry_price: f64,
pub exit_price: f64,
pub pnl: f64,
pub hold_time_secs: u64,
pub exit_reason: String,
}Fields§
§regime: String§side: String§entry_price: f64§exit_price: f64§pnl: f64§hold_time_secs: u64§exit_reason: StringTrait Implementations§
Source§impl Clone for TradeRecord
impl Clone for TradeRecord
Source§fn clone(&self) -> TradeRecord
fn clone(&self) -> TradeRecord
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 TradeRecord
impl Debug for TradeRecord
Source§impl<'de> Deserialize<'de> for TradeRecord
impl<'de> Deserialize<'de> for TradeRecord
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 TradeRecord
impl RefUnwindSafe for TradeRecord
impl Send for TradeRecord
impl Sync for TradeRecord
impl Unpin for TradeRecord
impl UnsafeUnpin for TradeRecord
impl UnwindSafe for TradeRecord
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