pub struct StateAction {
pub timestamp_us: i64,
pub state: PortfolioState,
pub action: TradingAction,
pub reward: f64,
}Fields§
§timestamp_us: i64§state: PortfolioState§action: TradingAction§reward: f64Trait Implementations§
Source§impl Clone for StateAction
impl Clone for StateAction
Source§fn clone(&self) -> StateAction
fn clone(&self) -> StateAction
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 StateAction
impl Debug for StateAction
Source§impl<'de> Deserialize<'de> for StateAction
impl<'de> Deserialize<'de> for StateAction
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 StateAction
impl RefUnwindSafe for StateAction
impl Send for StateAction
impl Sync for StateAction
impl Unpin for StateAction
impl UnwindSafe for StateAction
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