Enum gluesql_core::data::IntervalError
source · [−]pub enum IntervalError {
Show 15 variants
UnsupportedRange(String, String),
AddBetweenYearToMonthAndHourToSecond,
SubtractBetweenYearToMonthAndHourToSecond,
AddYearOrMonthToTime {
time: String,
interval: String,
},
SubtractYearOrMonthToTime {
time: String,
interval: String,
},
FailedToParseInteger(String),
FailedToParseDecimal(String),
FailedToParseTime(String),
FailedToParseYearToMonth(String),
FailedToParseDayToHour(String),
FailedToParseDayToMinute(String),
FailedToParseDayToSecond(String),
DateOverflow {
year: i32,
month: i32,
},
FailedToExtract,
Unreachable,
}Variants
UnsupportedRange(String, String)
AddBetweenYearToMonthAndHourToSecond
SubtractBetweenYearToMonthAndHourToSecond
AddYearOrMonthToTime
SubtractYearOrMonthToTime
FailedToParseInteger(String)
FailedToParseDecimal(String)
FailedToParseTime(String)
FailedToParseYearToMonth(String)
FailedToParseDayToHour(String)
FailedToParseDayToMinute(String)
FailedToParseDayToSecond(String)
DateOverflow
FailedToExtract
Unreachable
Trait Implementations
sourceimpl Debug for IntervalError
impl Debug for IntervalError
sourceimpl Display for IntervalError
impl Display for IntervalError
sourceimpl Error for IntervalError
impl Error for IntervalError
1.30.0 · sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
sourceimpl From<IntervalError> for Error
impl From<IntervalError> for Error
sourcefn from(source: IntervalError) -> Self
fn from(source: IntervalError) -> Self
Converts to this type from the input type.
sourceimpl PartialEq<IntervalError> for IntervalError
impl PartialEq<IntervalError> for IntervalError
sourcefn eq(&self, other: &IntervalError) -> bool
fn eq(&self, other: &IntervalError) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourceimpl Serialize for IntervalError
impl Serialize for IntervalError
impl StructuralPartialEq for IntervalError
Auto Trait Implementations
impl RefUnwindSafe for IntervalError
impl Send for IntervalError
impl Sync for IntervalError
impl Unpin for IntervalError
impl UnwindSafe for IntervalError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more