Enum toodoux::metadata::Metadata [−][src]
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]
metadata: impl IntoIterator<Item = &'a Metadata>
) -> Result<(), MetadataValidationError>
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]
strings: impl IntoIterator<Item = &'a str>
) -> (Vec<Metadata>, String)
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.
fn from_str(s: &str) -> Result<Self, Self::Err>
[src]
impl PartialEq<Metadata> for Metadata
[src]
impl StructuralEq for Metadata
[src]
impl StructuralPartialEq for Metadata
[src]
Auto Trait Implementations
impl RefUnwindSafe for Metadata
impl Send for Metadata
impl Sync for Metadata
impl Unpin for Metadata
impl UnwindSafe for Metadata
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,
pub fn borrow_mut(&mut self) -> &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> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
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.
pub 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>,