[−][src]Struct elastic_types::date::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]
year: i32,
month: u32,
day: u32,
hour: u32,
minute: u32,
second: u32,
milli: u32
) -> Self
Construct a DateValue
from individual parts.
Trait Implementations
impl PartialEq<DateValue> for DateValue
[src]
impl PartialEq<DateTime<Utc>> for DateValue
[src]
fn eq(&self, other: &ChronoDateTime) -> bool
[src]
fn ne(&self, other: &ChronoDateTime) -> bool
[src]
impl PartialEq<DateValue> for ChronoDateTime
[src]
impl Clone for DateValue
[src]
fn clone(&self) -> DateValue
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<TFormat> From<FormattableDateValue<TFormat>> for DateValue
[src]
fn from(date: FormattableDateValue<TFormat>) -> Self
[src]
impl From<DateTime<Utc>> for DateValue
[src]
fn from(date: ChronoDateTime) -> Self
[src]
impl<TFormat> From<DateValue> for FormattableDateValue<TFormat>
[src]
impl<TMapping> From<Date<TMapping>> for DateValue where
TMapping: DateMapping,
[src]
TMapping: DateMapping,
impl<TMapping> From<DateValue> for Date<TMapping> where
TMapping: DateMapping,
[src]
TMapping: DateMapping,
impl Deref for DateValue
[src]
type Target = ChronoDateTime
The resulting type after dereferencing.
fn deref(&self) -> &Self::Target
[src]
impl Debug for DateValue
[src]
impl Borrow<DateTime<Utc>> for DateValue
[src]
fn borrow(&self) -> &ChronoDateTime
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> From for T
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Same for T
type Output = T
Should always be Self
impl<SS, SP> SupersetOf for SP where
SS: SubsetOf<SP>,
SS: SubsetOf<SP>,