pub enum Warning {
ContainsEscapeCodes,
Decode(Warning),
PreferUpperCase,
InvalidCode,
InvalidType,
InvalidLength,
InvalidCodeXTS,
InvalidCodeXXX,
}Expand description
The warnings that can happen when parsing or linting a currency code.
Variants§
ContainsEscapeCodes
The currency field does not require char escape codes.
Decode(Warning)
The field at the path could not be decoded.
PreferUpperCase
The country is not a valid ISO 3166-1 country code because it’s not uppercase.
InvalidCode
The currency is not a valid ISO 4217 currency code.
InvalidType
The JSON value given is not a string.
InvalidLength
The currency is not a valid ISO 4217 currency code: it should be 3 chars.
InvalidCodeXTS
The currency is not a valid ISO 4217 currency code because it’s a test code.
InvalidCodeXXX
The currency is not a valid ISO 4217 currency code because it’s a code for no-currency.
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