Struct StreamLeg
pub(crate) struct StreamLeg {Show 14 fields
pub(crate) leg: Leg,
pub(crate) we_pay: bool,
pub(crate) currency: Currency,
notional: f64,
pub(crate) index: Option<String>,
pub(crate) bounds: Vec<Bound>,
spread: f64,
fixed: bool,
exchanges: Option<Exchanges>,
fx_linked: bool,
nds: Option<Nds>,
pub(crate) inflation: Option<InflationTerms>,
pub(crate) payments: Vec<(NaiveDate, NaiveDate, NaiveDate)>,
pub(crate) per_payment: usize,
}Expand description
A stream read into a leg, with what the swap assembly needs beside it.
Fields§
§leg: Leg§we_pay: bool§currency: Currency§notional: f64§index: Option<String>§bounds: Vec<Bound>The stream’s cap and floor strike schedules, which only a
capFloorStream may state.
spread: f64§fixed: bool§exchanges: Option<Exchanges>§fx_linked: bool§nds: Option<Nds>The stream’s non-deliverable settlement, where it states one.
inflation: Option<InflationTerms>The stream’s inflation terms, where it is an inflation stream.
payments: Vec<(NaiveDate, NaiveDate, NaiveDate)>Each payment’s accrual start, accrual end and payment date.
per_payment: usizeHow many calculation periods each payment groups.
Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for StreamLeg
impl !UnwindSafe for StreamLeg
impl Freeze for StreamLeg
impl Send for StreamLeg
impl Sync for StreamLeg
impl Unpin for StreamLeg
impl UnsafeUnpin for StreamLeg
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