Enum Rate
enum Rate {
Fixed(Steps),
Floating {
index: IborIndex,
spread: f64,
gearing: f64,
compounding: Option<ResetCompounding>,
initial_stub: Option<(IborIndex, IborIndex)>,
},
Inflation(InflationTerms),
Overnight {
index: OvernightIndex,
spread: f64,
gearing: f64,
accumulation: AccrualCompounding,
conventions: ObservationConventions,
calendar: Arc<dyn Calendar>,
},
}Variants§
Fixed(Steps)
Floating
Fields
§
compounding: Option<ResetCompounding>Inflation(InflationTerms)
A price index’s growth: the stream of an inflation swap.
Overnight
An overnight rate accumulated over each payment period.
Auto Trait Implementations§
impl !RefUnwindSafe for Rate
impl !UnwindSafe for Rate
impl Freeze for Rate
impl Send for Rate
impl Sync for Rate
impl Unpin for Rate
impl UnsafeUnpin for Rate
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