Enum elasticsearch_dsl::search::params::Date
source · pub enum Date {
System(SystemTime),
Chrono(ChronoTime),
}
Expand description
Time variants to serialize
Variants§
Trait Implementations§
source§impl From<&DateTime<Utc>> for Date
impl From<&DateTime<Utc>> for Date
source§fn from(value: &ChronoTime) -> Self
fn from(value: &ChronoTime) -> Self
Converts to this type from the input type.
source§impl From<&SystemTime> for Date
impl From<&SystemTime> for Date
source§fn from(value: &SystemTime) -> Self
fn from(value: &SystemTime) -> Self
Converts to this type from the input type.
source§impl From<DateTime<Utc>> for Date
impl From<DateTime<Utc>> for Date
source§fn from(value: ChronoTime) -> Self
fn from(value: ChronoTime) -> Self
Converts to this type from the input type.
source§impl From<SystemTime> for Date
impl From<SystemTime> for Date
source§fn from(value: SystemTime) -> Self
fn from(value: SystemTime) -> Self
Converts to this type from the input type.
source§impl Ord for Date
impl Ord for Date
source§impl PartialEq<DateTime<Utc>> for Date
impl PartialEq<DateTime<Utc>> for Date
source§fn eq(&self, other: &ChronoTime) -> bool
fn eq(&self, other: &ChronoTime) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialEq<SystemTime> for Date
impl PartialEq<SystemTime> for Date
source§fn eq(&self, other: &SystemTime) -> bool
fn eq(&self, other: &SystemTime) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialEq for Date
impl PartialEq for Date
source§impl PartialOrd<DateTime<Utc>> for Date
impl PartialOrd<DateTime<Utc>> for Date
source§fn partial_cmp(&self, other: &ChronoTime) -> Option<Ordering>
fn partial_cmp(&self, other: &ChronoTime) -> 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 moresource§impl PartialOrd<SystemTime> for Date
impl PartialOrd<SystemTime> for Date
source§fn partial_cmp(&self, other: &SystemTime) -> Option<Ordering>
fn partial_cmp(&self, other: &SystemTime) -> 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 moresource§impl PartialOrd for Date
impl PartialOrd for Date
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 moreimpl Copy for Date
impl Eq for Date
Auto Trait Implementations§
impl RefUnwindSafe for Date
impl Send for Date
impl Sync for Date
impl Unpin for Date
impl UnwindSafe for Date
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