#[non_exhaustive]pub enum AggregateError {
MissingRequiredField {
aggregate: String,
field: &'static str,
},
MutuallyExclusiveFields {
aggregate: String,
field_a: &'static str,
field_b: &'static str,
},
InvalidFieldValue {
aggregate: String,
field: &'static str,
value: String,
reason: String,
},
}Expand description
Error type for OFX aggregate parsing failures.
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.
MissingRequiredField
A required field was missing from the aggregate.
MutuallyExclusiveFields
Two mutually exclusive fields were both present.
InvalidFieldValue
A field contained an invalid value.
Trait Implementations§
Source§impl Clone for AggregateError
impl Clone for AggregateError
Source§fn clone(&self) -> AggregateError
fn clone(&self) -> AggregateError
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 AggregateError
impl Debug for AggregateError
Source§impl Display for AggregateError
impl Display for AggregateError
Source§impl Error for AggregateError
impl Error for AggregateError
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<AggregateError> for OfxError
impl From<AggregateError> for OfxError
Source§fn from(e: AggregateError) -> Self
fn from(e: AggregateError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for AggregateError
impl PartialEq for AggregateError
impl Eq for AggregateError
impl StructuralPartialEq for AggregateError
Auto Trait Implementations§
impl Freeze for AggregateError
impl RefUnwindSafe for AggregateError
impl Send for AggregateError
impl Sync for AggregateError
impl Unpin for AggregateError
impl UnsafeUnpin for AggregateError
impl UnwindSafe for AggregateError
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