pub enum CollectionError {
GhNotInstalled,
GhFailed(String),
AccountNotFound(String),
UnexpectedResponse(String),
IncompleteCalendar {
created_on: NaiveDate,
first_reported_on: Option<NaiveDate>,
},
InvalidHistory(ContributionHistoryError),
ConflictingRepository(ConflictingRepository),
ConflictingLanguageColor(String),
}Expand description
Why a collection produced no snapshot. Each message names the operator repair.
Variants§
GhNotInstalled
gh is not on PATH.
GhFailed(String)
gh ran and failed; carries its own message (authentication, rate limits, errors).
AccountNotFound(String)
GitHub has no account with this login.
UnexpectedResponse(String)
GitHub answered in a shape this version does not understand; carries the detail.
IncompleteCalendar
GitHub’s contribution calendar does not start on the account’s creation date.
Fields
InvalidHistory(ContributionHistoryError)
The collected days break the history rules; carries the rule.
ConflictingRepository(ConflictingRepository)
Two observations of one repository disagree.
ConflictingLanguageColor(String)
GitHub reported two colors for this language.
Trait Implementations§
Source§impl Debug for CollectionError
impl Debug for CollectionError
Source§impl Display for CollectionError
impl Display for CollectionError
impl Eq for CollectionError
Source§impl Error for CollectionError
impl Error for CollectionError
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 CollectionError
impl PartialEq for CollectionError
impl StructuralPartialEq for CollectionError
Auto Trait Implementations§
impl Freeze for CollectionError
impl RefUnwindSafe for CollectionError
impl Send for CollectionError
impl Sync for CollectionError
impl Unpin for CollectionError
impl UnsafeUnpin for CollectionError
impl UnwindSafe for CollectionError
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