pub enum TimestampTypeName {
Timestamp,
Timestamptz,
Datetime,
}Expand description
The SQL timestamp type name forms represented by the AST.
Variants§
Timestamp
The TIMESTAMP spelling.
Timestamptz
PostgreSQL’s TIMESTAMPTZ (TIMESTAMP WITH TIME ZONE) spelling.
Datetime
MySQL DATETIME: a timestamp-shaped type without time-zone semantics,
recognized only under
TypeNameSyntax::extended_scalar_type_names. It
reuses the timestamp variant (one canonical shape) and pins
TimeZone::Unspecified, since DATETIME takes no zone suffix.
Trait Implementations§
Source§impl Clone for TimestampTypeName
impl Clone for TimestampTypeName
Source§fn clone(&self) -> TimestampTypeName
fn clone(&self) -> TimestampTypeName
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for TimestampTypeName
Source§impl Debug for TimestampTypeName
impl Debug for TimestampTypeName
Source§impl<'de> Deserialize<'de> for TimestampTypeName
impl<'de> Deserialize<'de> for TimestampTypeName
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>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for TimestampTypeName
Source§impl Hash for TimestampTypeName
impl Hash for TimestampTypeName
Source§impl PartialEq for TimestampTypeName
impl PartialEq for TimestampTypeName
Source§impl Serialize for TimestampTypeName
impl Serialize for TimestampTypeName
impl StructuralPartialEq for TimestampTypeName
Auto Trait Implementations§
impl Freeze for TimestampTypeName
impl RefUnwindSafe for TimestampTypeName
impl Send for TimestampTypeName
impl Sync for TimestampTypeName
impl Unpin for TimestampTypeName
impl UnsafeUnpin for TimestampTypeName
impl UnwindSafe for TimestampTypeName
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