pub enum PoSQLTimestampError {
    InvalidTimezone(String),
    InvalidTimezoneOffset,
    InvalidTimeUnit(String),
    LocalTimeDoesNotExist,
    Ambiguous(String),
    ParsingError(String),
    UnsupportedPrecision(String),
}Expand description
Errors related to time operations, including timezone and timestamp conversions. Errors related to time operations, including timezone and timestamp conversions.s
Variants§
InvalidTimezone(String)
Error when the timezone string provided cannot be parsed into a valid timezone.
InvalidTimezoneOffset
Error indicating an invalid timezone offset was provided.
InvalidTimeUnit(String)
Indicates a failure to convert between different representations of time units.
LocalTimeDoesNotExist
The local time does not exist because there is a gap in the local time. This variant may also be returned if there was an error while resolving the local time, caused by for example missing time zone data files, an error in an OS API, or overflow.
Ambiguous(String)
The local time is ambiguous because there is a fold in the local time. This variant contains the two possible results, in the order (earliest, latest).
ParsingError(String)
Represents a catch-all for parsing errors not specifically covered by other variants.
UnsupportedPrecision(String)
Represents a failure to parse a provided time unit precision value, PoSQL supports Seconds, Milliseconds, Microseconds, and Nanoseconds
Trait Implementations§
source§impl Debug for PoSQLTimestampError
 
impl Debug for PoSQLTimestampError
source§impl<'de> Deserialize<'de> for PoSQLTimestampError
 
impl<'de> Deserialize<'de> for PoSQLTimestampError
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>,
source§impl Display for PoSQLTimestampError
 
impl Display for PoSQLTimestampError
source§impl Error for PoSQLTimestampError
 
impl Error for PoSQLTimestampError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
 
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · source§fn description(&self) -> &str
 
fn description(&self) -> &str
source§impl From<PoSQLTimestampError> for String
 
impl From<PoSQLTimestampError> for String
source§fn from(error: PoSQLTimestampError) -> Self
 
fn from(error: PoSQLTimestampError) -> Self
source§impl PartialEq for PoSQLTimestampError
 
impl PartialEq for PoSQLTimestampError
source§impl Serialize for PoSQLTimestampError
 
impl Serialize for PoSQLTimestampError
impl Eq for PoSQLTimestampError
impl StructuralPartialEq for PoSQLTimestampError
Auto Trait Implementations§
impl Freeze for PoSQLTimestampError
impl RefUnwindSafe for PoSQLTimestampError
impl Send for PoSQLTimestampError
impl Sync for PoSQLTimestampError
impl Unpin for PoSQLTimestampError
impl UnwindSafe for PoSQLTimestampError
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
source§impl<Q, K> Equivalent<K> for Q
 
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
 
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
 
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.