pub struct StateDelta {
pub dimension: String,
pub from_value: f64,
pub to_value: f64,
}Expand description
A single dimension of state change proposed by an action.
Fields§
§dimension: StringWhich state dimension is changing (e.g., “AAPL_weight”).
from_value: f64Current value in that dimension.
to_value: f64Proposed new value.
Trait Implementations§
Source§impl Clone for StateDelta
impl Clone for StateDelta
Source§fn clone(&self) -> StateDelta
fn clone(&self) -> StateDelta
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 StateDelta
impl Debug for StateDelta
Source§impl<'de> Deserialize<'de> for StateDelta
impl<'de> Deserialize<'de> for StateDelta
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 StateDelta
impl RefUnwindSafe for StateDelta
impl Send for StateDelta
impl Sync for StateDelta
impl Unpin for StateDelta
impl UnsafeUnpin for StateDelta
impl UnwindSafe for StateDelta
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