pub struct TimestampParseError;Expand description
Why an RFC 3339 string could not be read as a Timestamp.
Deliberately opaque: this reaches users through a 400/422 on a REST path segment or query parameter, where the useful information is “that is not an RFC 3339 instant”, not which of fourteen sub-fields was malformed.
Trait Implementations§
Source§impl Clone for TimestampParseError
impl Clone for TimestampParseError
impl Copy for TimestampParseError
Source§impl Debug for TimestampParseError
impl Debug for TimestampParseError
Source§impl Display for TimestampParseError
impl Display for TimestampParseError
impl Eq for TimestampParseError
Source§impl Error for TimestampParseError
impl Error for TimestampParseError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for TimestampParseError
impl PartialEq for TimestampParseError
impl StructuralPartialEq for TimestampParseError
Auto Trait Implementations§
impl Freeze for TimestampParseError
impl RefUnwindSafe for TimestampParseError
impl Send for TimestampParseError
impl Sync for TimestampParseError
impl Unpin for TimestampParseError
impl UnsafeUnpin for TimestampParseError
impl UnwindSafe for TimestampParseError
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