pub struct Tag {Show 14 fields
pub id: TagId,
pub slug: String,
pub name: String,
pub color: String,
pub text_color: String,
pub match_pattern: Option<String>,
pub matching_algorithm: Option<MatchAlgorithm>,
pub is_insensitive: bool,
pub is_inbox_tag: bool,
pub document_count: u32,
pub owner: Option<UserId>,
pub user_can_change: bool,
pub parent: Option<TagId>,
pub children: Vec<Box<Tag>>,
}Expand description
A document tag
Fields§
§id: TagIdUnique identifier of the tag.
slug: StringSlug of the tag.
name: StringName of the tag.
color: StringColor of the tag, in hex format.
text_color: StringColor of the text on the tag, in hex format.
match_pattern: Option<String>Matching pattern for the tag.
matching_algorithm: Option<MatchAlgorithm>Matching algorithm for the tag.
is_insensitive: boolWhether the tag is case-insensitive.
is_inbox_tag: boolWhether the tag is an inbox tag.
document_count: u32Number of documents associated with this tag.
owner: Option<UserId>Owner of the tag.
user_can_change: boolWhether the user can change the tag.
parent: Option<TagId>Parent tag of this tag.
children: Vec<Box<Tag>>Children tags of this tag.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Tag
impl<'de> Deserialize<'de> for Tag
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 Tag
impl RefUnwindSafe for Tag
impl Send for Tag
impl Sync for Tag
impl Unpin for Tag
impl UnsafeUnpin for Tag
impl UnwindSafe for Tag
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