Trait PricingRiskFactors
pub trait PricingRiskFactors {
// Required method
fn risk_factors(&self) -> Result<RiskFactors<'_>, PricingError>;
}Expand description
What a product declares. Not parameterized by the mode, and never will be — a declaration that changed with the pricing mode would not be a declaration.
Required Methods§
fn risk_factors(&self) -> Result<RiskFactors<'_>, PricingError>
fn risk_factors(&self) -> Result<RiskFactors<'_>, PricingError>
The market data this product is priced against.
§Errors
PricingError::UnsupportedForProduct where the product’s market data
exceeds the single-curve shape RiskFactors can express.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".