pub enum Warning {
Invalid(String),
InvalidType,
Overflow,
}Expand description
The warnings possible when parsing or linting a duration.
Variants§
Invalid(String)
Unable to parse the duration.
InvalidType
The JSON value given is not an int.
Overflow
A numeric overflow occurred while creating a duration.
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