[−][src]Struct cqrs_todo_core::domain::Description
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 Clone for Description
[src]
fn clone(&self) -> Description
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl PartialEq<Description> for Description
[src]
fn eq(&self, other: &Description) -> bool
[src]
fn ne(&self, other: &Description) -> bool
[src]
impl Eq for Description
[src]
impl Debug for Description
[src]
impl Borrow<str> for Description
[src]
impl Serialize for Description
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl<'de> Deserialize<'de> for Description
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
Auto Trait Implementations
impl Sync for Description
impl Send for Description
impl Unpin for Description
impl RefUnwindSafe for Description
impl UnwindSafe for Description
Blanket Implementations
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> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T, V> SliceConcat<T> for V where
T: Clone,
V: Borrow<[T]>,
[src]
T: Clone,
V: Borrow<[T]>,
type Output = Vec<T>
🔬 This is a nightly-only experimental API. (
slice_concat_trait
)The resulting type after concatenation
fn concat(slice: &[V]) -> Vec<T>
[src]
fn join(slice: &[V], sep: &T) -> Vec<T>
[src]
impl<S> SliceConcat<str> for S where
S: Borrow<str>,
[src]
S: Borrow<str>,
type Output = String
🔬 This is a nightly-only experimental API. (
slice_concat_trait
)The resulting type after concatenation
fn concat(slice: &[S]) -> String
[src]
fn join(slice: &[S], sep: &str) -> String
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,