pub enum Warning {
Invalid(&'static str),
InvalidType {
type_found: ValueKind,
},
Overflow,
}Expand description
The warnings possible when parsing or linting a duration.
Variants§
Invalid(&'static str)
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§
impl Eq for Warning
Source§impl Ord for Warning
impl Ord for Warning
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for Warning
impl PartialOrd for Warning
impl StructuralPartialEq for Warning
Auto Trait Implementations§
impl Forget for Warning
impl Freeze for Warning
impl Move for Warning
impl RefUnwindSafe for Warning
impl Send for Warning
impl Sync for Warning
impl Unpin for Warning
impl UnsafeUnpin for Warningwhere
&'static str: UnsafeUnpin,
impl UnwindSafe for Warningwhere
&'static str: UnwindSafe,
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