Enum repr::adt::datetime::TimeStrToken [−][src]
pub(crate) enum TimeStrToken {
Dash,
Colon,
Dot,
Plus,
Zulu,
Num(i64, usize),
Nanos(i64),
TzName(String),
TimeUnit(DateTimeField),
DateTimeUnit(DateTimeUnits),
DateTimeDelimiter,
Delim,
}
Expand description
TimeStrToken represents valid tokens in time-like strings, i.e those used in INTERVAL, TIMESTAMP/TZ, DATE, and TIME.
Variants
Dash
Colon
Dot
Plus
Zulu
Num(i64, usize)
Nanos(i64)
Tuple Fields
0: i64
TzName(String)
Tuple Fields
0: String
TimeUnit(DateTimeField)
Tuple Fields
DateTimeUnit(DateTimeUnits)
Tuple Fields
DateTimeDelimiter
Delim
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for TimeStrToken
impl Send for TimeStrToken
impl Sync for TimeStrToken
impl Unpin for TimeStrToken
impl UnwindSafe for TimeStrToken
Blanket Implementations
Mutably borrows from an owned value. Read more
Formats an object with the “alternative” format ({:#}
) and returns it.
Compare self to key
and return true
if they are equal.
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more