pub struct RealOptionsConfig {
pub name: String,
pub method: ValuationMethod,
pub underlying: UnderlyingConfig,
pub options: Vec<OptionDefinition>,
pub binomial_steps: usize,
pub monte_carlo_iterations: usize,
pub seed: Option<u64>,
}Expand description
Configuration for real options analysis
Fields§
§name: StringName of the analysis
method: ValuationMethodValuation method
underlying: UnderlyingConfigUnderlying asset configuration
options: Vec<OptionDefinition>Options to value
binomial_steps: usizeNumber of steps in binomial tree
monte_carlo_iterations: usizeNumber of Monte Carlo iterations
seed: Option<u64>Random seed for reproducibility
Implementations§
Source§impl RealOptionsConfig
impl RealOptionsConfig
Sourcepub fn new(name: &str, underlying: UnderlyingConfig) -> Self
pub fn new(name: &str, underlying: UnderlyingConfig) -> Self
Create a new configuration
Sourcepub const fn with_method(self, method: ValuationMethod) -> Self
pub const fn with_method(self, method: ValuationMethod) -> Self
Set valuation method
Sourcepub fn with_option(self, option: OptionDefinition) -> Self
pub fn with_option(self, option: OptionDefinition) -> Self
Add an option
Sourcepub const fn with_binomial_steps(self, steps: usize) -> Self
pub const fn with_binomial_steps(self, steps: usize) -> Self
Set binomial steps
Trait Implementations§
Source§impl Clone for RealOptionsConfig
impl Clone for RealOptionsConfig
Source§fn clone(&self) -> RealOptionsConfig
fn clone(&self) -> RealOptionsConfig
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 RealOptionsConfig
impl Debug for RealOptionsConfig
Source§impl<'de> Deserialize<'de> for RealOptionsConfig
impl<'de> Deserialize<'de> for RealOptionsConfig
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 RealOptionsConfig
impl RefUnwindSafe for RealOptionsConfig
impl Send for RealOptionsConfig
impl Sync for RealOptionsConfig
impl Unpin for RealOptionsConfig
impl UnsafeUnpin for RealOptionsConfig
impl UnwindSafe for RealOptionsConfig
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