[][src]Struct cqrs_todo_core::domain::Description

pub struct Description { /* fields omitted */ }

A description of a task to be done.

Methods

impl Description[src]

pub fn new<S: Into<String>>(text: S) -> Result<Description, InvalidDescription>[src]

Creates a new description, verifying that the text provided is not empty.

pub fn as_str(&self) -> &str[src]

Provides access to the description text as a &str.

Trait Implementations

impl PartialEq<Description> for Description[src]

impl Eq for Description[src]

impl Clone for Description[src]

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

Performs copy-assignment from source. Read more

impl Debug for Description[src]

impl Borrow<str> for Description[src]

impl Serialize for Description[src]

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

Auto Trait Implementations

impl Send for Description

impl Sync for Description

Blanket Implementations

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

type Owned = T

The resulting type after obtaining ownership.

impl<T> From for T[src]

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

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

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

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