[−][src]Struct mercurius::ReadableDate
ReadableDate wraps a date and could be (de)serialize with format like
Apr 4, 2010
.
Implementations
impl ReadableDate
[src]
pub fn new(year: i32, month: u32, day: u32) -> Self
[src]
pub fn today() -> Self
[src]
Create a ReadableDate
for today.
Trait Implementations
impl Clone for ReadableDate
[src]
fn clone(&self) -> ReadableDate
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for ReadableDate
[src]
impl Default for ReadableDate
[src]
impl<'de> Deserialize<'de> for ReadableDate
[src]
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
[src]
impl Display for ReadableDate
[src]
impl PartialEq<ReadableDate> for ReadableDate
[src]
fn eq(&self, other: &ReadableDate) -> bool
[src]
fn ne(&self, other: &ReadableDate) -> bool
[src]
impl PartialOrd<ReadableDate> for ReadableDate
[src]
fn partial_cmp(&self, other: &ReadableDate) -> Option<Ordering>
[src]
fn lt(&self, other: &ReadableDate) -> bool
[src]
fn le(&self, other: &ReadableDate) -> bool
[src]
fn gt(&self, other: &ReadableDate) -> bool
[src]
fn ge(&self, other: &ReadableDate) -> bool
[src]
impl Serialize for ReadableDate
[src]
impl StructuralPartialEq for ReadableDate
[src]
impl<'_> Sub<&'_ ReadableDate> for &'_ ReadableDate
[src]
type Output = Duration
The resulting type after applying the -
operator.
fn sub(self, other: &ReadableDate) -> Self::Output
[src]
impl Sub<ReadableDate> for ReadableDate
[src]
Auto Trait Implementations
impl RefUnwindSafe for ReadableDate
impl Send for ReadableDate
impl Sync for ReadableDate
impl Unpin for ReadableDate
impl UnwindSafe for ReadableDate
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
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, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,