#[non_exhaustive]pub enum HeaderError {
Missing,
MalformedProcessingInstruction {
detail: String,
},
MissingAttribute {
attribute: &'static str,
},
InvalidVersion {
value: String,
},
InvalidSecurity {
value: String,
},
}Expand description
Error returned when parsing an OFX header.
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.
Missing
No OFX header was found in the input.
MalformedProcessingInstruction
The OFX processing instruction was malformed.
MissingAttribute
A required attribute was missing from the header.
InvalidVersion
The VERSION attribute had an invalid value.
InvalidSecurity
The SECURITY attribute had an invalid value.
Trait Implementations§
Source§impl Clone for HeaderError
impl Clone for HeaderError
Source§fn clone(&self) -> HeaderError
fn clone(&self) -> HeaderError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for HeaderError
impl Debug for HeaderError
Source§impl Display for HeaderError
impl Display for HeaderError
Source§impl Error for HeaderError
impl Error for HeaderError
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 From<HeaderError> for OfxError
impl From<HeaderError> for OfxError
Source§fn from(e: HeaderError) -> Self
fn from(e: HeaderError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for HeaderError
impl PartialEq for HeaderError
impl Eq for HeaderError
impl StructuralPartialEq for HeaderError
Auto Trait Implementations§
impl Freeze for HeaderError
impl RefUnwindSafe for HeaderError
impl Send for HeaderError
impl Sync for HeaderError
impl Unpin for HeaderError
impl UnsafeUnpin for HeaderError
impl UnwindSafe for HeaderError
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