Skip to main content

paperless_api/
tag.rs

1use serde::Deserialize;
2
3use crate::id::TagId;
4
5/// A document tag
6#[derive(Debug, Clone, Deserialize)]
7pub struct Tag {
8    /// Unique identifier of the tag.
9    pub id: TagId,
10
11    /// Name of the tag.
12    pub name: String,
13
14    /// Number of documents associated with this tag.
15    pub document_count: u32,
16}