proxycurl_linkedin_rs/models/
publication.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 Publication {
13    /// Name of the publication.
14    #[serde(
15        rename = "name",
16        default,
17        with = "::serde_with::rust::double_option",
18        skip_serializing_if = "Option::is_none"
19    )]
20    pub name: Option<Option<String>>,
21    /// The publishing organisation body.
22    #[serde(
23        rename = "publisher",
24        default,
25        with = "::serde_with::rust::double_option",
26        skip_serializing_if = "Option::is_none"
27    )]
28    pub publisher: Option<Option<String>>,
29    #[serde(rename = "published_on", skip_serializing_if = "Option::is_none")]
30    pub published_on: Option<Box<crate::models::Date>>,
31    /// Description of the publication.
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    /// URL of the publication.
40    #[serde(
41        rename = "url",
42        default,
43        with = "::serde_with::rust::double_option",
44        skip_serializing_if = "Option::is_none"
45    )]
46    pub url: Option<Option<String>>,
47}
48
49impl Publication {
50    pub fn new() -> Publication {
51        Publication {
52            name: None,
53            publisher: None,
54            published_on: None,
55            description: None,
56            url: None,
57        }
58    }
59}