Enum wiktionary_dump_parser::error::Error
source · pub enum Error {
ReqwestError(Error),
RegexError(Error),
UrlParseError(ParseError),
SerdeJsonError(Error),
IoError(Error),
FromUtf8Error(FromUtf8Error),
QuickXmlError(Error),
QuickXmlAttributeError(AttrError),
WikitextParserError {
error: Box<ParserError>,
page_name: String,
page_content: String,
},
UnknownEnglishLanguageName(String),
UnknownWiktionaryLanguageAbbreviation(String),
Other(String),
}Variants§
ReqwestError(Error)
RegexError(Error)
UrlParseError(ParseError)
SerdeJsonError(Error)
IoError(Error)
FromUtf8Error(FromUtf8Error)
QuickXmlError(Error)
QuickXmlAttributeError(AttrError)
WikitextParserError
Fields
§
error: Box<ParserError>The error returned by the parser.
UnknownEnglishLanguageName(String)
The given english language name is unknown.
UnknownWiktionaryLanguageAbbreviation(String)
The given wiktionary language abbreviation is unknown.
Other(String)
An error described by a string instead of a variant.
Trait Implementations§
source§impl From<FromUtf8Error> for Error
impl From<FromUtf8Error> for Error
source§fn from(error: FromUtf8Error) -> Self
fn from(error: FromUtf8Error) -> Self
Converts to this type from the input type.
source§impl From<ParseError> for Error
impl From<ParseError> for Error
source§fn from(error: ParseError) -> Self
fn from(error: ParseError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
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