Struct StatedCashflow
pub struct StatedCashflow {
pub stream: usize,
pub payment_date: NaiveDate,
pub accrual_start: NaiveDate,
pub accrual_end: NaiveDate,
pub notional: Option<f64>,
pub fixing_dates: Vec<NaiveDate>,
}Expand description
One paymentCalculationPeriod of a stream’s stated cashflows.
A compounding payment spans several calculation periods: the accrual runs from the first period’s start to the last period’s end, the notional is the first period’s, and every period’s fixing date is kept in order.
Fields§
§stream: usizeThe one-based swap stream the row belongs to, in document order.
payment_date: NaiveDateThe adjusted payment date.
accrual_start: NaiveDateThe adjusted start of the first calculation period.
accrual_end: NaiveDateThe adjusted end of the last calculation period.
notional: Option<f64>The notional, where the document states one.
fixing_dates: Vec<NaiveDate>The adjusted fixing dates, one per rate observation, in document order.
Trait Implementations§
§impl Clone for StatedCashflow
impl Clone for StatedCashflow
§fn clone(&self) -> StatedCashflow
fn clone(&self) -> StatedCashflow
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 more§impl Debug for StatedCashflow
impl Debug for StatedCashflow
§impl PartialEq for StatedCashflow
impl PartialEq for StatedCashflow
impl StructuralPartialEq for StatedCashflow
Auto Trait Implementations§
impl Freeze for StatedCashflow
impl RefUnwindSafe for StatedCashflow
impl Send for StatedCashflow
impl Sync for StatedCashflow
impl Unpin for StatedCashflow
impl UnsafeUnpin for StatedCashflow
impl UnwindSafe for StatedCashflow
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