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
use std::collections::HashMap;

use serde::{Deserialize, Serialize};

#[derive(Deserialize, Debug)]
pub struct Document {
    pub title: String,
    pub id: i32,
    pub tags: Vec<i32>,
}

#[derive(Serialize, Debug)]
pub struct DocumentBulkEdit {
    pub documents: Vec<i32>,
    pub method: String,
    pub parameters: HashMap<String, String>,
}