Enum toodoux::metadata::Metadata[][src]

pub enum Metadata {
    Project(String),
    Priority(Priority),
    Tag(String),
}

Task metadata.

Variants

Project(String)

Project name.

Priority(Priority)

Priority.

Tag(String)

Tag.

Implementations

impl Metadata[src]

pub fn validate<'a>(
    metadata: impl IntoIterator<Item = &'a Metadata>
) -> Result<(), MetadataValidationError>
[src]

Validate a list (set) of metadata.

pub fn project(name: impl Into<String>) -> Self[src]

Create a metadata representing a project.

pub fn priority(priority: Priority) -> Self[src]

Create a metadata representing a priority.

pub fn tag(name: impl Into<String>) -> Self[src]

Create a metadata representing a tag.

pub fn from_words<'a>(
    strings: impl IntoIterator<Item = &'a str>
) -> (Vec<Metadata>, String)
[src]

Find metadata in a list of words encoded as a string.

pub fn filter_like(&self) -> impl Display[src]

Return a “filter-like” representation of this metadata.

Trait Implementations

impl Clone for Metadata[src]

impl Debug for Metadata[src]

impl Eq for Metadata[src]

impl From<Priority> for Metadata[src]

impl FromStr for Metadata[src]

type Err = MetadataParsingError

The associated error which can be returned from parsing.

impl PartialEq<Metadata> for Metadata[src]

impl StructuralEq for Metadata[src]

impl StructuralPartialEq for Metadata[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

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

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

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

type Owned = T

The resulting type after obtaining ownership.

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.