Skip to main content

StreamLeg

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: usize

How many calculation periods each payment groups.

Implementations§

§

impl StreamLeg

pub(crate) fn notional(&self) -> f64

The stream’s initial notional.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.