zotero-api-rs 1.0.0

A secure, typed Rust client for the Zotero Web API v3
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//! Collection response objects.

use serde::{Deserialize, Serialize};

use crate::types::zotero_object::ZoteroObject;

/// Collection envelope.
pub type Collection = ZoteroObject;

/// Body for creating/updating collections.
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct CollectionInput {
    /// Resource payload sent to Zotero.
    #[serde(flatten)]
    pub data: serde_json::Value,
}