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
use serde::Deserialize;
use std::fmt;

#[derive(Deserialize, Debug)]
pub struct Correspondent {
    pub id: i32,
    pub document_count: i32,
    pub name: String,
    pub slug: String,
    pub owner: i32,
}
impl fmt::Display for Correspondent {
    fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
        write!(f, "[{}] \"{}\"", self.id, self.name)
    }
}