Struct Conversion
pub(crate) struct Conversion {
pub(crate) settlement: String,
pub(crate) payments: Vec<(Option<NaiveDate>, f64)>,
}Expand description
How a non-deliverable leg’s rows convert: the currency its payments settle
in, and per payment (in Leg::payment_dates order) its FX fixing date —
none for a payment converting at an agreed rate — and what one unit of the
leg’s currency paid that day is worth today in the settlement currency: the
conversion and the discount in one factor, as the valuation reads them. A
payment already made carries NaN.
Fields§
§settlement: String§payments: Vec<(Option<NaiveDate>, f64)>Auto Trait Implementations§
impl Freeze for Conversion
impl RefUnwindSafe for Conversion
impl Send for Conversion
impl Sync for Conversion
impl Unpin for Conversion
impl UnsafeUnpin for Conversion
impl UnwindSafe for Conversion
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