core_api_client/models/work_models/
reference.rs

1use serde::{Deserialize, Serialize};
2
3/// Struct representing a reference.
4#[derive(Debug, Deserialize, Serialize, PartialEq, PartialOrd, Hash, Default)]
5pub struct Reference {
6    /// ID of the reference.
7    pub id: Option<i32>,
8    /// List of authors of the reference.
9    pub authors: Option<Vec<String>>,
10
11    /// Cites information of the reference.
12    pub cites: Option<String>,
13
14    /// Date associated with the reference.
15    pub date: Option<String>,
16
17    /// Digital Object Identifier (DOI) of the reference.
18    pub doi: Option<String>,
19
20    /// Raw content of the reference.
21    pub raw: Option<String>,
22
23    /// Title of the reference.
24    pub title: Option<String>,
25
26}