#[non_exhaustive]pub enum ArticleError {
WrongKind(Kind),
MissingIdentifier,
InvalidPublishedAt(String),
}Expand description
Errors raised by Article::from_event.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
WrongKind(Kind)
The event was not kind: 30023 / 30024.
MissingIdentifier
No d tag was present.
InvalidPublishedAt(String)
published_at was present but malformed.
Trait Implementations§
Source§impl Debug for ArticleError
impl Debug for ArticleError
Source§impl Display for ArticleError
impl Display for ArticleError
Source§impl Error for ArticleError
impl Error for ArticleError
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()
Auto Trait Implementations§
impl Freeze for ArticleError
impl RefUnwindSafe for ArticleError
impl Send for ArticleError
impl Sync for ArticleError
impl Unpin for ArticleError
impl UnsafeUnpin for ArticleError
impl UnwindSafe for ArticleError
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