pub struct Concept {
pub id: ConceptId,
pub name: String,
pub description: Option<String>,
pub parent: Option<ConceptId>,
}Expand description
A named category that tasks can be grouped under.
Concepts form a tree via the optional parent field.
A concept with no parent is a root node.
Fields§
§id: ConceptIdUnique identifier.
name: StringHuman-readable name.
description: Option<String>Optional longer description.
parent: Option<ConceptId>Parent concept, or None for root concepts.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Concept
impl<'de> Deserialize<'de> for Concept
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Concept
impl RefUnwindSafe for Concept
impl Send for Concept
impl Sync for Concept
impl Unpin for Concept
impl UnsafeUnpin for Concept
impl UnwindSafe for Concept
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more