paperless_ngx_api 0.3.0

A library for interacting with Paperless-ngx
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#[derive(Debug, thiserror::Error)]
#[non_exhaustive]
pub enum PaperlessError {
    #[error("Too many tasks supplied")]
    TooManyTasks(),

    #[error("The configuration was incomplete")]
    IncompleteConfig(),

    #[error("The correspondent is unknown")]
    UnknownCorrespondent(),

    #[error("API interaction error: {0}")]
    API(#[from] reqwest::Error),

    #[error("I/O error")]
    Io(#[from] std::io::Error),
}