pub enum TemporalFormatError {
InvalidForInterval,
TimeZoneFormatValueTooLong,
DateOutOfRangeForTimestamp,
}Expand description
Why PostgreSQL refuses to format a date or time with to_char, one variant per message it
raises.
Variants§
InvalidForInterval
A field of a calendar date or a zone in the template of an interval or a time, which PostgreSQL hints are not tied to calendar dates.
TimeZoneFormatValueTooLong
TZ or tz of a zone abbreviation longer than 24 bytes.
DateOutOfRangeForTimestamp
A date from 294277-01-01, or one whose midnight in the zone falls outside the
timestamptz range.
Trait Implementations§
Source§impl Clone for TemporalFormatError
impl Clone for TemporalFormatError
impl Copy for TemporalFormatError
Source§impl Debug for TemporalFormatError
impl Debug for TemporalFormatError
Source§impl Display for TemporalFormatError
impl Display for TemporalFormatError
impl Eq for TemporalFormatError
Source§impl Error for TemporalFormatError
impl Error for TemporalFormatError
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 Hash for TemporalFormatError
impl Hash for TemporalFormatError
Source§impl PartialEq for TemporalFormatError
impl PartialEq for TemporalFormatError
impl StructuralPartialEq for TemporalFormatError
Auto Trait Implementations§
impl Forget for TemporalFormatError
impl Freeze for TemporalFormatError
impl Move for TemporalFormatError
impl RefUnwindSafe for TemporalFormatError
impl Send for TemporalFormatError
impl Sync for TemporalFormatError
impl Unpin for TemporalFormatError
impl UnsafeUnpin for TemporalFormatError
impl UnwindSafe for TemporalFormatError
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