pub enum TimeZoneError {
InvalidValue,
OffsetOutOfRange,
MonthsInInterval,
DaysInInterval,
LeapSeconds,
Interval(IntervalError),
}Expand description
Why PostgreSQL refuses a TimeZone setting, one variant per message or detail it raises.
Variants§
InvalidValue
Neither an offset, an IANA name nor a POSIX specification.
OffsetOutOfRange
An offset in hours or an interval of 168 hours or more.
MonthsInInterval
An interval '...' setting with months.
DaysInInterval
An interval '...' setting with days.
LeapSeconds
A zone whose offset at 2000-01-01 00:00:00 UTC has seconds, which PostgreSQL takes for leap seconds.
Interval(IntervalError)
An interval '...' setting interval_in refuses.
Trait Implementations§
Source§impl Clone for TimeZoneError
impl Clone for TimeZoneError
impl Copy for TimeZoneError
Source§impl Debug for TimeZoneError
impl Debug for TimeZoneError
Source§impl Display for TimeZoneError
impl Display for TimeZoneError
impl Eq for TimeZoneError
Source§impl Error for TimeZoneError
impl Error for TimeZoneError
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 From<IntervalError> for TimeZoneError
impl From<IntervalError> for TimeZoneError
Source§fn from(source: IntervalError) -> Self
fn from(source: IntervalError) -> Self
Converts to this type from the input type.
Source§impl Hash for TimeZoneError
impl Hash for TimeZoneError
Source§impl PartialEq for TimeZoneError
impl PartialEq for TimeZoneError
impl StructuralPartialEq for TimeZoneError
Auto Trait Implementations§
impl Forget for TimeZoneError
impl Freeze for TimeZoneError
impl RefUnwindSafe for TimeZoneError
impl Send for TimeZoneError
impl Sync for TimeZoneError
impl Unpin for TimeZoneError
impl UnsafeUnpin for TimeZoneError
impl UnwindSafe for TimeZoneError
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