paperless_api/
storage_path.rs1use serde::Deserialize;
2
3use crate::util::MatchAlgorithm;
4
5#[derive(Debug, Clone, Deserialize)]
7pub struct StoragePath {
8 pub id: crate::id::StoragePathId,
9 pub slug: String,
10 pub name: String,
11 pub path: String,
12
13 #[serde(rename = "match")]
14 pub match_pattern: Option<String>,
15 pub matching_algorithm: MatchAlgorithm,
16 pub is_insensitive: bool,
17
18 pub document_count: u32,
19
20 pub owner: Option<crate::id::UserId>,
21 pub user_can_change: bool,
22}