pub enum PoSQLTimestampError {
InvalidTimezone {
timezone: String,
},
InvalidTimezoneOffset,
InvalidTimeUnit {
error: String,
},
LocalTimeDoesNotExist,
Ambiguous {
error: String,
},
ParsingError {
error: String,
},
UnsupportedPrecision {
error: String,
},
}
Expand description
Errors related to time operations, including timezone and timestamp conversions. Errors related to time operations, including timezone and timestamp conversions.
Variants§
InvalidTimezone
Error when the timezone string provided cannot be parsed into a valid timezone.
InvalidTimezoneOffset
Error indicating an invalid timezone offset was provided.
InvalidTimeUnit
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
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
Represents a catch-all for parsing errors not specifically covered by other variants.
UnsupportedPrecision
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
Source§impl ErrorCompat for PoSQLTimestampError
impl ErrorCompat for PoSQLTimestampError
Source§fn iter_chain(&self) -> ChainCompat<'_, '_>where
Self: AsErrorSource,
fn iter_chain(&self) -> ChainCompat<'_, '_>where
Self: AsErrorSource,
Error::source
. Read more