Struct LegTerms
pub struct LegTerms {
pub notional: f64,
pub day_count: DayCountFraction,
pub currency: Currency,
pub direction: Direction,
pub payment: PaymentRule,
}Expand description
The terms every leg shares, whatever its coupons pay.
Bundled rather than passed one by one: these travel together, and a builder that takes eight positional arguments is one a caller gets wrong silently.
Fields§
§notional: f64The notional every coupon accrues on.
day_count: DayCountFractionThe accrual day count.
currency: CurrencyThe currency the leg pays in.
direction: DirectionWhich side the leg is on.
payment: PaymentRuleHow accrual ends become payment dates.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for LegTerms
impl !UnwindSafe for LegTerms
impl Freeze for LegTerms
impl Send for LegTerms
impl Sync for LegTerms
impl Unpin for LegTerms
impl UnsafeUnpin for LegTerms
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