pub struct TagCategory {
pub name: String,
pub description: Option<String>,
pub tags: HashSet<String>,
}Expand description
A tag category for organizing tags into groups.
Fields§
§name: StringCategory name (e.g., “domain”, “application”, “status”)
description: Option<String>Human-readable description
Tags in this category
Implementations§
Source§impl TagCategory
impl TagCategory
Sourcepub fn with_description(self, description: impl Into<String>) -> Self
pub fn with_description(self, description: impl Into<String>) -> Self
Sets the category description.
Trait Implementations§
Source§impl Clone for TagCategory
impl Clone for TagCategory
Source§fn clone(&self) -> TagCategory
fn clone(&self) -> TagCategory
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TagCategory
impl Debug for TagCategory
Source§impl<'de> Deserialize<'de> for TagCategory
impl<'de> Deserialize<'de> for TagCategory
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 TagCategory
impl RefUnwindSafe for TagCategory
impl Send for TagCategory
impl Sync for TagCategory
impl Unpin for TagCategory
impl UnwindSafe for TagCategory
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