pub struct PortfolioState {
pub cash: Decimal,
pub unrealized_pnl: Decimal,
pub market_features: Vec<f64>,
}Fields§
§cash: Decimal§unrealized_pnl: Decimal§market_features: Vec<f64>Trait Implementations§
Source§impl Clone for PortfolioState
impl Clone for PortfolioState
Source§fn clone(&self) -> PortfolioState
fn clone(&self) -> PortfolioState
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 PortfolioState
impl Debug for PortfolioState
Source§impl<'de> Deserialize<'de> for PortfolioState
impl<'de> Deserialize<'de> for PortfolioState
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 PortfolioState
impl RefUnwindSafe for PortfolioState
impl Send for PortfolioState
impl Sync for PortfolioState
impl Unpin for PortfolioState
impl UnwindSafe for PortfolioState
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