pub enum Warning {
ContainsEscapeCodes,
Decode(Warning),
PreferUpperCase,
InvalidCode,
InvalidType,
InvalidLength,
InvalidReserved,
}Variants§
ContainsEscapeCodes
Neither the timezone or country field 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 country is not a valid ISO 3166-1 country code.
InvalidType
The JSON value given is not a string.
InvalidLength
The country is not a valid ISO 3166-1 country code because it’s not 2 or 3 chars in length.
InvalidReserved
The country is not a valid ISO 3166-1 country code because it’s all codes beginning with ‘X’ are reserved.
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