pub enum InvoiceParserError {
FileReadError(Error),
PdfExtractionError(String),
XlsxParsingError(String),
InvalidFileFormat {
expected: String,
actual: String,
},
DateParseError(String),
AmountParseError(String),
MissingField(String),
RegexError(Error),
JsonError(Error),
UnsupportedFileType(String),
EmptyDocument,
ParseError(String),
}Variants§
FileReadError(Error)
PdfExtractionError(String)
XlsxParsingError(String)
InvalidFileFormat
DateParseError(String)
AmountParseError(String)
MissingField(String)
RegexError(Error)
JsonError(Error)
UnsupportedFileType(String)
EmptyDocument
ParseError(String)
Trait Implementations§
Source§impl Debug for InvoiceParserError
impl Debug for InvoiceParserError
Source§impl Display for InvoiceParserError
impl Display for InvoiceParserError
Source§impl Error for InvoiceParserError
impl Error for InvoiceParserError
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 From<Error> for InvoiceParserError
impl From<Error> for InvoiceParserError
Source§impl From<Error> for InvoiceParserError
impl From<Error> for InvoiceParserError
Auto Trait Implementations§
impl Freeze for InvoiceParserError
impl !RefUnwindSafe for InvoiceParserError
impl Send for InvoiceParserError
impl Sync for InvoiceParserError
impl Unpin for InvoiceParserError
impl !UnwindSafe for InvoiceParserError
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