Struct ProvenanceEntry
pub struct ProvenanceEntry {
pub maturity: NaiveDate,
pub quote: f64,
pub tenor: Option<Period>,
pub label: Option<String>,
}Expand description
One rung of the ladder that calibrated a curve, kept so the curve can say what it reprices.
It carries no curve role. A role is chosen when a curve is pinned — the
same solved curve can enter a market as a discount curve, a projection curve
or both — and this module cannot know which, so a ladder is identified by the
CurveProvenance holding it and a CurveId is attached only when one is
read back out of a market.
Fields§
§maturity: NaiveDateThe rung instrument’s maturity — the date the column is quoted at.
quote: f64The quote the rung was calibrated to, in its own units.
tenor: Option<Period>The tenor the rung was quoted at, where it carried one.
label: Option<String>The rung’s label where it was quoted at no tenor — a futures contract, a step window.
Trait Implementations§
§impl Clone for ProvenanceEntry
impl Clone for ProvenanceEntry
§fn clone(&self) -> ProvenanceEntry
fn clone(&self) -> ProvenanceEntry
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 more§impl Debug for ProvenanceEntry
impl Debug for ProvenanceEntry
§impl PartialEq for ProvenanceEntry
impl PartialEq for ProvenanceEntry
impl StructuralPartialEq for ProvenanceEntry
Auto Trait Implementations§
impl Freeze for ProvenanceEntry
impl RefUnwindSafe for ProvenanceEntry
impl Send for ProvenanceEntry
impl Sync for ProvenanceEntry
impl Unpin for ProvenanceEntry
impl UnsafeUnpin for ProvenanceEntry
impl UnwindSafe for ProvenanceEntry
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