Enum sqlparser::ast::TimezoneInfo
source · pub enum TimezoneInfo {
None,
WithTimeZone,
WithoutTimeZone,
Tz,
}
Expand description
Timestamp and Time data types information about TimeZone formatting.
This is more related to a display information than real differences between each variant. To guarantee compatibility with the input query we must maintain its exact information.
Variants§
None
No information about time zone. E.g., TIMESTAMP
WithTimeZone
WithoutTimeZone
Temporal type ‘WITHOUT TIME ZONE’. E.g., TIME WITHOUT TIME ZONE, standard, Postgresql
Tz
Postgresql specific WITH TIME ZONE
formatting, for both TIME and TIMESTAMP. E.g., TIMETZ, Postgresql
Trait Implementations§
source§impl Clone for TimezoneInfo
impl Clone for TimezoneInfo
source§fn clone(&self) -> TimezoneInfo
fn clone(&self) -> TimezoneInfo
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for TimezoneInfo
impl Debug for TimezoneInfo
source§impl Display for TimezoneInfo
impl Display for TimezoneInfo
source§impl Hash for TimezoneInfo
impl Hash for TimezoneInfo
source§impl Ord for TimezoneInfo
impl Ord for TimezoneInfo
source§fn cmp(&self, other: &TimezoneInfo) -> Ordering
fn cmp(&self, other: &TimezoneInfo) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<TimezoneInfo> for TimezoneInfo
impl PartialEq<TimezoneInfo> for TimezoneInfo
source§fn eq(&self, other: &TimezoneInfo) -> bool
fn eq(&self, other: &TimezoneInfo) -> bool
source§impl PartialOrd<TimezoneInfo> for TimezoneInfo
impl PartialOrd<TimezoneInfo> for TimezoneInfo
source§fn partial_cmp(&self, other: &TimezoneInfo) -> Option<Ordering>
fn partial_cmp(&self, other: &TimezoneInfo) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more