Struct BondQuote
pub struct BondQuote {
pub value: f64,
pub measure: BondMeasure,
pub units: QuoteUnits,
}Expand description
A tagged bond quote: a numeric value plus what it means (BondMeasure) and
its scale (QuoteUnits). A bare number is ambiguous; the measure drives the
pricing dispatch and the units normalise the value before it.
Fields§
§value: f64The quoted number.
measure: BondMeasureWhat the number measures (FpML measureType).
units: QuoteUnitsThe scale the number is expressed in (FpML quoteUnits).
Implementations§
§impl BondQuote
impl BondQuote
pub fn new(value: f64, measure: BondMeasure, units: QuoteUnits) -> Self
pub fn new(value: f64, measure: BondMeasure, units: QuoteUnits) -> Self
A tagged quote from a value, a measure, and its units.
Trait Implementations§
impl Copy for BondQuote
impl StructuralPartialEq for BondQuote
Auto Trait Implementations§
impl Freeze for BondQuote
impl RefUnwindSafe for BondQuote
impl Send for BondQuote
impl Sync for BondQuote
impl Unpin for BondQuote
impl UnsafeUnpin for BondQuote
impl UnwindSafe for BondQuote
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