Struct UnknownFixingIndexError
pub struct UnknownFixingIndexError {
pub index: String,
pub date: NaiveDate,
pub known: Vec<String>,
}Expand description
The detail behind MarketDataError::UnknownFixingIndex.
Carries the offending observation — its key and its date — so a caller publishing a series is told which row is wrong rather than that some row is, and the registered codes, so the correction is in the error.
Fields§
§index: StringThe key the observation was published under.
date: NaiveDateThe observation’s date.
known: Vec<String>The registered rate-index codes a fixing can be published under.
Trait Implementations§
§impl Clone for UnknownFixingIndexError
impl Clone for UnknownFixingIndexError
§fn clone(&self) -> UnknownFixingIndexError
fn clone(&self) -> UnknownFixingIndexError
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 UnknownFixingIndexError
impl Debug for UnknownFixingIndexError
impl Eq for UnknownFixingIndexError
§impl PartialEq for UnknownFixingIndexError
impl PartialEq for UnknownFixingIndexError
§fn eq(&self, other: &UnknownFixingIndexError) -> bool
fn eq(&self, other: &UnknownFixingIndexError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for UnknownFixingIndexError
Auto Trait Implementations§
impl Freeze for UnknownFixingIndexError
impl RefUnwindSafe for UnknownFixingIndexError
impl Send for UnknownFixingIndexError
impl Sync for UnknownFixingIndexError
impl Unpin for UnknownFixingIndexError
impl UnsafeUnpin for UnknownFixingIndexError
impl UnwindSafe for UnknownFixingIndexError
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