pub enum DateTimeCrate {
Inferred,
Chrono,
Time,
}Expand description
The preferred crate to use for mapping date/time types to Rust.
Variants§
Inferred
Use whichever crate is enabled (time then chrono).
Chrono
Always use types from [chrono][crate::types::chrono].
[macros.preferred-crates]
date-time = "chrono"Time
Always use types from [time][crate::types::time].
[macros.preferred-crates]
date-time = "time"Implementations§
Source§impl DateTimeCrate
impl DateTimeCrate
Sourcepub fn is_inferred(&self) -> bool
pub fn is_inferred(&self) -> bool
Returns self == Self::Inferred
pub fn crate_name(&self) -> Option<&str>
Trait Implementations§
Source§impl Debug for DateTimeCrate
impl Debug for DateTimeCrate
Source§impl Default for DateTimeCrate
impl Default for DateTimeCrate
Source§fn default() -> DateTimeCrate
fn default() -> DateTimeCrate
Returns the “default value” for a type. Read more
Source§impl PartialEq for DateTimeCrate
impl PartialEq for DateTimeCrate
impl Eq for DateTimeCrate
impl StructuralPartialEq for DateTimeCrate
Auto Trait Implementations§
impl Freeze for DateTimeCrate
impl RefUnwindSafe for DateTimeCrate
impl Send for DateTimeCrate
impl Sync for DateTimeCrate
impl Unpin for DateTimeCrate
impl UnwindSafe for DateTimeCrate
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
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
Compare self to
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more