Struct ReferenceDateMismatch
pub struct ReferenceDateMismatch {
pub key: String,
pub market: Option<NaiveDate>,
pub curve: NaiveDate,
}Expand description
A curve was bound to a market that is as of another date.
A market’s inputs are all quoted as of some date. Two that disagree describe no single market, and until this existed such a market built, lifted and priced without complaint.
Fields§
§key: StringThe key the disagreeing curve was bound under.
market: Option<NaiveDate>The date the market is as of, or None for a market with no date,
which takes no dated curve at all.
curve: NaiveDateThe date the curve is as of.
Trait Implementations§
§impl Clone for ReferenceDateMismatch
impl Clone for ReferenceDateMismatch
§fn clone(&self) -> ReferenceDateMismatch
fn clone(&self) -> ReferenceDateMismatch
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 ReferenceDateMismatch
impl Debug for ReferenceDateMismatch
§impl Display for ReferenceDateMismatch
impl Display for ReferenceDateMismatch
impl Eq for ReferenceDateMismatch
§impl Error for ReferenceDateMismatch
impl Error for ReferenceDateMismatch
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
§impl PartialEq for ReferenceDateMismatch
impl PartialEq for ReferenceDateMismatch
§fn eq(&self, other: &ReferenceDateMismatch) -> bool
fn eq(&self, other: &ReferenceDateMismatch) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ReferenceDateMismatch
Auto Trait Implementations§
impl Freeze for ReferenceDateMismatch
impl RefUnwindSafe for ReferenceDateMismatch
impl Send for ReferenceDateMismatch
impl Sync for ReferenceDateMismatch
impl Unpin for ReferenceDateMismatch
impl UnsafeUnpin for ReferenceDateMismatch
impl UnwindSafe for ReferenceDateMismatch
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