Struct FixedRateCoupon
pub struct FixedRateCoupon {
pub accrual_start: NaiveDate,
pub accrual_end: NaiveDate,
pub payment_date: NaiveDate,
pub notional: f64,
pub fixed_rate: f64,
pub day_count: DayCountFraction,
pub accrual: f64,
pub payment_ordinal: i32,
pub currency: Currency,
}Expand description
A fixed-rate coupon: notional · rate · tau, paid on the payment date.
Fields§
§accrual_start: NaiveDateAccrual start.
accrual_end: NaiveDateAccrual end.
payment_date: NaiveDatePayment date, which a payment lag may move past the accrual end.
notional: f64The notional the coupon accrues on. Contract data.
fixed_rate: f64The fixed rate, as a decimal. Contract data.
day_count: DayCountFractionThe accrual day count.
accrual: f64The accrual year fraction under day_count, evaluated once at build.
A schedule-derived passive term: a valuation reads it and never
re-walks the convention.
payment_ordinal: i32The payment date as a proleptic-Gregorian day number — the form a curve is queried in, computed once at build.
currency: CurrencyThe coupon’s currency.
Trait Implementations§
§impl Clone for FixedRateCoupon
impl Clone for FixedRateCoupon
§fn clone(&self) -> FixedRateCoupon
fn clone(&self) -> FixedRateCoupon
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 FixedRateCoupon
impl Debug for FixedRateCoupon
§impl PartialEq for FixedRateCoupon
impl PartialEq for FixedRateCoupon
impl StructuralPartialEq for FixedRateCoupon
Auto Trait Implementations§
impl Freeze for FixedRateCoupon
impl RefUnwindSafe for FixedRateCoupon
impl Send for FixedRateCoupon
impl Sync for FixedRateCoupon
impl Unpin for FixedRateCoupon
impl UnsafeUnpin for FixedRateCoupon
impl UnwindSafe for FixedRateCoupon
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