Struct Contribution
struct Contribution {
curve: Option<CurveId>,
label: Option<String>,
tenor: Option<Tenor>,
input: Option<MarketInputId>,
date: Option<NaiveDate>,
value: f64,
}Expand description
One labelled contribution, before it is collapsed.
Fields§
§curve: Option<CurveId>§label: Option<String>The rung’s label where it was quoted at no tenor.
tenor: Option<Tenor>The rung’s tenor, for a par contribution whose ladder carried one.
input: Option<MarketInputId>The input, kept only where it has no curve or no date: it is then the label.
date: Option<NaiveDate>§value: f64Trait Implementations§
§impl Clone for Contribution
impl Clone for Contribution
§fn clone(&self) -> Contribution
fn clone(&self) -> Contribution
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for Contribution
impl RefUnwindSafe for Contribution
impl Send for Contribution
impl Sync for Contribution
impl Unpin for Contribution
impl UnsafeUnpin for Contribution
impl UnwindSafe for Contribution
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