Skip to main content

paperless_api/
correspondent.rs

1use serde::Deserialize;
2
3/// A correspondent
4#[derive(Debug, Clone, Deserialize)]
5pub struct Correspondent {
6    pub id: crate::id::CorrespondentId,
7    pub slug: String,
8    pub name: String,
9
10    /// The number of documents associated with this correspondent.
11    pub document_count: u32,
12
13    /// The user who owns this correspondent, if any.
14    pub owner: Option<crate::id::UserId>,
15
16    /// Whether the current user can change this correspondent.
17    pub user_can_change: bool,
18}