Struct elastic_types::date::FormattableDateValue [] [src]

pub struct FormattableDateValue<TFormat>(_, _);

A date value paired with a format.

FormattableDateValue<F> bundles a DateValue with a specific format and is used to ensure the formats of mappable date types aren't accidentally changed. Like DateValue, this type is used for binding generics in methods that accept date values but it requires the input type uses a specific format. You probably don't need to use it directly except to ensure date formats aren't silently changed.

Methods

impl<TFormat> FormattableDateValue<TFormat> where
    TFormat: DateFormat
[src]

[src]

Format the wrapped date value using the generic format.

[src]

Parse a date value using the generic format.

Trait Implementations

impl<TFormat: Debug> Debug for FormattableDateValue<TFormat>
[src]

[src]

Formats the value using the given formatter.

impl<TFormat: Clone> Clone for FormattableDateValue<TFormat>
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<TFormat: PartialEq> PartialEq for FormattableDateValue<TFormat>
[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<DateValue> for FormattableDateValue<TFormat>
[src]

[src]

Performs the conversion.

impl<TFormat> Borrow<ChronoDateTime> for FormattableDateValue<TFormat>
[src]

[src]

Immutably borrows from an owned value. Read more

impl<TFormat> PartialEq<ChronoDateTime> for FormattableDateValue<TFormat>
[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 From<ChronoDateTime> for FormattableDateValue<ChronoFormat>
[src]

[src]

Performs the conversion.

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

[src]

Performs the conversion.