pub enum Warning {
ExclusiveVatGreaterThanInclusive,
InvalidType,
MissingExclVatField,
Number(Warning),
}Expand description
The warnings that can happen when parsing or linting a monetary value.
Variants§
ExclusiveVatGreaterThanInclusive
The excl_vat field is greater than the incl_vat field.
InvalidType
The JSON value given is not an object.
MissingExclVatField
The excl_vat field is required.
Number(Warning)
Both the excl_vat and incl_vat fields should be valid numbers.
Trait Implementations§
Source§impl Ord for Warning
impl Ord for Warning
Source§impl PartialOrd for Warning
impl PartialOrd for Warning
impl Eq for Warning
impl StructuralPartialEq for Warning
Auto Trait Implementations§
impl Freeze for Warning
impl RefUnwindSafe for Warning
impl Send for Warning
impl Sync for Warning
impl Unpin for Warning
impl UnwindSafe for Warning
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