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