pub struct FxRateServiceConfig {
pub base_currency: String,
pub mean_reversion_speed: f64,
pub long_term_mean: f64,
pub daily_volatility: f64,
pub fat_tail_probability: f64,
pub fat_tail_multiplier: f64,
pub currencies: Vec<String>,
pub include_weekends: bool,
}Expand description
Configuration for FX rate generation.
Fields§
§base_currency: StringBase currency for all rates.
mean_reversion_speed: f64Mean reversion speed (theta) - higher = faster reversion.
long_term_mean: f64Long-term mean level (typically 0 for log returns).
daily_volatility: f64Daily volatility (sigma) - typical FX volatility is 0.5-1% daily.
fat_tail_probability: f64Probability of fat-tail event (2x volatility).
fat_tail_multiplier: f64Fat-tail multiplier.
currencies: Vec<String>Currencies to generate rates for.
include_weekends: boolWhether to generate weekend rates (or skip weekends).
Trait Implementations§
Source§impl Clone for FxRateServiceConfig
impl Clone for FxRateServiceConfig
Source§fn clone(&self) -> FxRateServiceConfig
fn clone(&self) -> FxRateServiceConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 FxRateServiceConfig
impl Debug for FxRateServiceConfig
Auto Trait Implementations§
impl Freeze for FxRateServiceConfig
impl RefUnwindSafe for FxRateServiceConfig
impl Send for FxRateServiceConfig
impl Sync for FxRateServiceConfig
impl Unpin for FxRateServiceConfig
impl UnsafeUnpin for FxRateServiceConfig
impl UnwindSafe for FxRateServiceConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.