pub enum ContributionHistoryError {
MissingHistory,
ConflictingDate(NaiveDate),
AfterObservationDate {
contribution_date: NaiveDate,
observed_on: NaiveDate,
},
MissingDate(NaiveDate),
}Expand description
Why a history could not be summarized. Each message names the repair.
Variants§
MissingHistory
The snapshot has no contribution history.
ConflictingDate(NaiveDate)
Two entries for this date carry different counts.
AfterObservationDate
An entry is dated after the observation date.
Fields
MissingDate(NaiveDate)
The history skips this date.
Trait Implementations§
Source§impl Debug for ContributionHistoryError
impl Debug for ContributionHistoryError
Source§impl Display for ContributionHistoryError
impl Display for ContributionHistoryError
impl Eq for ContributionHistoryError
Source§impl Error for ContributionHistoryError
impl Error for ContributionHistoryError
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()
Source§impl PartialEq for ContributionHistoryError
impl PartialEq for ContributionHistoryError
impl StructuralPartialEq for ContributionHistoryError
Auto Trait Implementations§
impl Freeze for ContributionHistoryError
impl RefUnwindSafe for ContributionHistoryError
impl Send for ContributionHistoryError
impl Sync for ContributionHistoryError
impl Unpin for ContributionHistoryError
impl UnsafeUnpin for ContributionHistoryError
impl UnwindSafe for ContributionHistoryError
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