pub struct OptionResult {
pub name: String,
pub option_type: OptionType,
pub value: f64,
pub probability_exercise: Option<f64>,
pub optimal_trigger: Option<String>,
}Expand description
Result for a single option
Fields§
§name: StringOption name
option_type: OptionTypeOption type
value: f64Option value
probability_exercise: Option<f64>Probability of exercise (from simulation)
optimal_trigger: Option<String>Optimal trigger condition
Trait Implementations§
Source§impl Clone for OptionResult
impl Clone for OptionResult
Source§fn clone(&self) -> OptionResult
fn clone(&self) -> OptionResult
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 OptionResult
impl Debug for OptionResult
Source§impl<'de> Deserialize<'de> for OptionResult
impl<'de> Deserialize<'de> for OptionResult
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 OptionResult
impl RefUnwindSafe for OptionResult
impl Send for OptionResult
impl Sync for OptionResult
impl Unpin for OptionResult
impl UnsafeUnpin for OptionResult
impl UnwindSafe for OptionResult
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