proxycurl_linkedin_rs/models/
patent.rs

1/*
2 * Proxycurl API
3 *
4 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5 *
6 * The version of the OpenAPI document: 1.0.0
7 *
8 * Generated by: https://openapi-generator.tech
9 */
10
11#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
12pub struct Patent {
13    /// Title of the patent.
14    #[serde(
15        rename = "title",
16        default,
17        with = "::serde_with::rust::double_option",
18        skip_serializing_if = "Option::is_none"
19    )]
20    pub title: Option<Option<String>>,
21    /// The organisation body that issued the patent.
22    #[serde(
23        rename = "issuer",
24        default,
25        with = "::serde_with::rust::double_option",
26        skip_serializing_if = "Option::is_none"
27    )]
28    pub issuer: Option<Option<String>>,
29    #[serde(rename = "issued_on", skip_serializing_if = "Option::is_none")]
30    pub issued_on: Option<Box<crate::models::Date>>,
31    /// Description of the patent.
32    #[serde(
33        rename = "description",
34        default,
35        with = "::serde_with::rust::double_option",
36        skip_serializing_if = "Option::is_none"
37    )]
38    pub description: Option<Option<String>>,
39    /// Numerical representation that identifies the patent.
40    #[serde(
41        rename = "application_number",
42        default,
43        with = "::serde_with::rust::double_option",
44        skip_serializing_if = "Option::is_none"
45    )]
46    pub application_number: Option<Option<String>>,
47    /// Application number of the patent.
48    #[serde(
49        rename = "patent_number",
50        default,
51        with = "::serde_with::rust::double_option",
52        skip_serializing_if = "Option::is_none"
53    )]
54    pub patent_number: Option<Option<String>>,
55    #[serde(
56        rename = "url",
57        default,
58        with = "::serde_with::rust::double_option",
59        skip_serializing_if = "Option::is_none"
60    )]
61    pub url: Option<Option<String>>,
62}
63
64impl Patent {
65    pub fn new() -> Patent {
66        Patent {
67            title: None,
68            issuer: None,
69            issued_on: None,
70            description: None,
71            application_number: None,
72            patent_number: None,
73            url: None,
74        }
75    }
76}