Enum pact_models::time_utils::DateTimeError [−][src]
pub enum DateTimeError<I> {
InvalidDayInYear(String),
InvalidDayInMonth(String),
InvalidMonth(String),
InvalidQuarter(String),
InvalidWeekInYear(String),
InvalidDayOfWeek(String),
InvalidHour(String),
InvalidMinute(String),
InvalidMillisecond(String),
FullTimezonesNotSupported(String),
InvalidTimezone(String),
Nom(I, ErrorKind),
}
Expand description
Errors when parsing date time values
Variants
InvalidDayInYear(String)
Tuple Fields of InvalidDayInYear
0: String
InvalidDayInMonth(String)
Tuple Fields of InvalidDayInMonth
0: String
InvalidMonth(String)
Tuple Fields of InvalidMonth
0: String
InvalidQuarter(String)
Tuple Fields of InvalidQuarter
0: String
InvalidWeekInYear(String)
Tuple Fields of InvalidWeekInYear
0: String
InvalidDayOfWeek(String)
Tuple Fields of InvalidDayOfWeek
0: String
InvalidHour(String)
Tuple Fields of InvalidHour
0: String
InvalidMinute(String)
Tuple Fields of InvalidMinute
0: String
InvalidMillisecond(String)
Tuple Fields of InvalidMillisecond
0: String
FullTimezonesNotSupported(String)
Tuple Fields of FullTimezonesNotSupported
0: String
InvalidTimezone(String)
Tuple Fields of InvalidTimezone
0: String
Nom(I, ErrorKind)
Nom error occurred
Tuple Fields of Nom
0: I
1: ErrorKind
Trait Implementations
Creates an error from the input position and an ErrorKind
Creates an error from an input position and an expected character
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl<I> RefUnwindSafe for DateTimeError<I> where
I: RefUnwindSafe,
impl<I> Send for DateTimeError<I> where
I: Send,
impl<I> Sync for DateTimeError<I> where
I: Sync,
impl<I> Unpin for DateTimeError<I> where
I: Unpin,
impl<I> UnwindSafe for DateTimeError<I> where
I: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more