Struct CmsPeriod
pub struct CmsPeriod {
pub accrual_start: NaiveDate,
pub accrual_end: NaiveDate,
pub fixing: NaiveDate,
pub year_fraction: f64,
}Expand description
One period of a CMS leg: accrual, the fixing in advance and the year fraction the rate accrues over.
Fields§
§accrual_start: NaiveDateAccrual start.
accrual_end: NaiveDateAccrual end, which is also the payment date.
fixing: NaiveDateThe fixing: the swap index’s fixing lag before the accrual start, as its floating index fixes.
year_fraction: f64The accrual year fraction on the leg’s day count.
Trait Implementations§
impl Copy for CmsPeriod
impl StructuralPartialEq for CmsPeriod
Auto Trait Implementations§
impl Freeze for CmsPeriod
impl RefUnwindSafe for CmsPeriod
impl Send for CmsPeriod
impl Sync for CmsPeriod
impl Unpin for CmsPeriod
impl UnsafeUnpin for CmsPeriod
impl UnwindSafe for CmsPeriod
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