Skip to main content

Row

Struct Row 

pub(crate) struct Row {
Show 17 fields pub(crate) kind: &'static str, pub(crate) direction: &'static str, pub(crate) currency: String, pub(crate) accrual_start: Option<NaiveDate>, pub(crate) accrual_end: Option<NaiveDate>, pub(crate) payment_date: Option<NaiveDate>, pub(crate) fixing_date: Option<NaiveDate>, pub(crate) notional: f64, pub(crate) year_fraction: f64, pub(crate) rate: f64, pub(crate) amount: f64, pub(crate) discount_factor: f64, pub(crate) pv: f64, pub(crate) settlement_currency: String, pub(crate) fx_fixing_date: Option<NaiveDate>, pub(crate) leg: f64, pub(crate) index: String,
}
Expand description

One row’s worth of numbers, before they are transposed into columns.

Crate-visible so a product whose flows are no leg’s coupons — a linker’s indexed flows — tables them through assemble into the same columns.

Fields§

§kind: &'static str§direction: &'static str§currency: String§accrual_start: Option<NaiveDate>§accrual_end: Option<NaiveDate>§payment_date: Option<NaiveDate>§fixing_date: Option<NaiveDate>§notional: f64§year_fraction: f64§rate: f64§amount: f64§discount_factor: f64§pv: f64§settlement_currency: String§fx_fixing_date: Option<NaiveDate>§leg: f64

The row’s leg, by position in the instrument’s declared order.

§index: String

The index the row resets on, by registry code; empty where none.

Auto Trait Implementations§

§

impl Freeze for Row

§

impl RefUnwindSafe for Row

§

impl Send for Row

§

impl Sync for Row

§

impl Unpin for Row

§

impl UnsafeUnpin for Row

§

impl UnwindSafe for Row

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.