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

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]

[src]

Equivalent to DateTime<Utc>::now()

[src]

Construct a DateValue from individual parts.

Trait Implementations

impl Debug for DateValue
[src]

[src]

Formats the value using the given formatter. Read more

impl Clone for DateValue
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl PartialEq for DateValue
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

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

[src]

Performs the conversion.

impl From<ChronoDateTime> for DateValue
[src]

[src]

Performs the conversion.

impl PartialEq<ChronoDateTime> for DateValue
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl PartialEq<DateValue> for ChronoDateTime
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl Borrow<ChronoDateTime> for DateValue
[src]

[src]

Immutably borrows from an owned value. Read more

impl Deref for DateValue
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.

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

[src]

Performs the conversion.

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

[src]

Performs the conversion.

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

[src]

Performs the conversion.

Auto Trait Implementations

impl Send for DateValue

impl Sync for DateValue