proxycurl_linkedin_rs/models/
company_update.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 CompanyUpdate {
13    /// The URL for which the post links out to
14    #[serde(
15        rename = "article_link",
16        default,
17        with = "::serde_with::rust::double_option",
18        skip_serializing_if = "Option::is_none"
19    )]
20    pub article_link: Option<Option<String>>,
21    /// The URL to the image to the post (if it exists)
22    #[serde(
23        rename = "image",
24        default,
25        with = "::serde_with::rust::double_option",
26        skip_serializing_if = "Option::is_none"
27    )]
28    pub image: Option<Option<String>>,
29    #[serde(rename = "posted_on", skip_serializing_if = "Option::is_none")]
30    pub posted_on: Option<Box<crate::models::Date>>,
31    /// The body of the update
32    #[serde(
33        rename = "text",
34        default,
35        with = "::serde_with::rust::double_option",
36        skip_serializing_if = "Option::is_none"
37    )]
38    pub text: Option<Option<String>>,
39    /// The total likes a post has received
40    #[serde(
41        rename = "total_likes",
42        default,
43        with = "::serde_with::rust::double_option",
44        skip_serializing_if = "Option::is_none"
45    )]
46    pub total_likes: Option<Option<i32>>,
47}
48
49impl CompanyUpdate {
50    pub fn new() -> CompanyUpdate {
51        CompanyUpdate {
52            article_link: None,
53            image: None,
54            posted_on: None,
55            text: None,
56            total_likes: None,
57        }
58    }
59}