pub enum ParseError {
UnrecognizedFormat(String),
AmbiguousDate(String, Vec<String>),
InvalidDate(String),
MissingTimezone(String),
InvalidTimezone(String),
ParseError(String),
}
Expand description
Error types for date parsing
Variants§
UnrecognizedFormat(String)
No recognizable date format found
AmbiguousDate(String, Vec<String>)
Ambiguous date that requires disambiguation
InvalidDate(String)
Invalid date components (e.g., February 30th)
MissingTimezone(String)
Missing required timezone information
InvalidTimezone(String)
Invalid timezone specification
ParseError(String)
General parsing error
Trait Implementations§
Source§impl Clone for ParseError
impl Clone for ParseError
Source§fn clone(&self) -> ParseError
fn clone(&self) -> ParseError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ParseError
impl Debug for ParseError
Source§impl<'de> Deserialize<'de> for ParseError
impl<'de> Deserialize<'de> for ParseError
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ParseError
impl PartialEq for ParseError
Source§impl Serialize for ParseError
impl Serialize for ParseError
impl StructuralPartialEq for ParseError
Auto Trait Implementations§
impl Freeze for ParseError
impl RefUnwindSafe for ParseError
impl Send for ParseError
impl Sync for ParseError
impl Unpin for ParseError
impl UnwindSafe for ParseError
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