[][src]Struct elastic_types::date::prelude::DateValue

pub struct DateValue(_);

A date value produced and consumed by date formats.

DateValue is a very thin wrapper over DateTime<Utc> that doesn't carry any formatting semantics. Like FormattableDateValue, this type is used for binding generics in methods that accept date values but it ignores any format on the input type. You probably won't need to use it directly except to clobber the format on a Date<M> or DateTime<Utc> value.

Methods

impl DateValue[src]

pub fn now() -> Self[src]

Equivalent to DateTime<Utc>::now()

pub fn build(
    year: i32,
    month: u32,
    day: u32,
    hour: u32,
    minute: u32,
    second: u32,
    milli: u32
) -> Self
[src]

Construct a DateValue from individual parts.

Trait Implementations

impl PartialEq<DateValue> for DateValue[src]

impl PartialEq<DateTime<Utc>> for DateValue[src]

impl PartialEq<DateValue> for ChronoDateTime[src]

impl<TFormat> From<FormattableDateValue<TFormat>> for DateValue[src]

impl From<DateTime<Utc>> for DateValue[src]

impl<TFormat> From<DateValue> for FormattableDateValue<TFormat>[src]

impl<TMapping> From<Date<TMapping>> for DateValue where
    TMapping: DateMapping
[src]

impl<TMapping> From<DateValue> for Date<TMapping> where
    TMapping: DateMapping
[src]

impl Clone for DateValue[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Deref for DateValue[src]

type Target = ChronoDateTime

The resulting type after dereferencing.

impl Debug for DateValue[src]

impl Borrow<DateTime<Utc>> for DateValue[src]

Auto Trait Implementations

impl Send for DateValue

impl Sync for DateValue

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Same for T

type Output = T

Should always be Self

impl<SS, SP> SupersetOf for SP where
    SS: SubsetOf<SP>,