[][src]Struct cqrs_todo_core::domain::Reminder

pub struct Reminder { /* fields omitted */ }

A time at which a user should be reminded that they have something to do.

Methods

impl Reminder[src]

pub fn new(
    reminder_time: DateTime<Utc>,
    current_time: DateTime<Utc>
) -> Result<Reminder, InvalidReminderTime>
[src]

Creates a new reminder, verifying that the time is after the supplied current_time.

pub fn get_time(&self) -> DateTime<Utc>[src]

Gets the underlying time of the reminder.

Trait Implementations

impl Clone for Reminder[src]

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

Performs copy-assignment from source. Read more

impl PartialEq<Reminder> for Reminder[src]

impl Copy for Reminder[src]

impl Eq for Reminder[src]

impl Debug for Reminder[src]

impl Serialize for Reminder[src]

impl<'de> Deserialize<'de> for Reminder[src]

Auto Trait Implementations

Blanket Implementations

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

type Owned = T

The resulting type after obtaining ownership.

impl<T> From<T> for T[src]

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

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

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> 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> BorrowMut<T> for T where
    T: ?Sized
[src]

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

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

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]