proxycurl_linkedin_rs/models/
article.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 Article {
13    #[serde(
14        rename = "title",
15        default,
16        with = "::serde_with::rust::double_option",
17        skip_serializing_if = "Option::is_none"
18    )]
19    pub title: Option<Option<String>>,
20    #[serde(
21        rename = "link",
22        default,
23        with = "::serde_with::rust::double_option",
24        skip_serializing_if = "Option::is_none"
25    )]
26    pub link: Option<Option<String>>,
27    #[serde(rename = "published_date", skip_serializing_if = "Option::is_none")]
28    pub published_date: Option<Box<crate::models::Date>>,
29    #[serde(
30        rename = "author",
31        default,
32        with = "::serde_with::rust::double_option",
33        skip_serializing_if = "Option::is_none"
34    )]
35    pub author: Option<Option<String>>,
36    #[serde(
37        rename = "image_url",
38        default,
39        with = "::serde_with::rust::double_option",
40        skip_serializing_if = "Option::is_none"
41    )]
42    pub image_url: Option<Option<String>>,
43}
44
45impl Article {
46    pub fn new() -> Article {
47        Article {
48            title: None,
49            link: None,
50            published_date: None,
51            author: None,
52            image_url: None,
53        }
54    }
55}