Skip to main content

amazon_spapi/models/services/
job_listing.rs

1/*
2 * Selling Partner API for Services
3 *
4 * With the Services API, you can build applications that help service providers get and modify their service orders and manage their resources.
5 *
6 * The version of the OpenAPI document: v1
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// JobListing : The payload for the `getServiceJobs` operation.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct JobListing {
17    /// Total result size of the query result.
18    #[serde(rename = "totalResultSize", skip_serializing_if = "Option::is_none")]
19    pub total_result_size: Option<i32>,
20    /// A generated string used to pass information to your next request. If `nextPageToken` is returned, pass the value of `nextPageToken` to the `pageToken` to get next results.
21    #[serde(rename = "nextPageToken", skip_serializing_if = "Option::is_none")]
22    pub next_page_token: Option<String>,
23    /// A generated string used to pass information to your next request. If `previousPageToken` is returned, pass the value of `previousPageToken` to the `pageToken` to get previous page results.
24    #[serde(rename = "previousPageToken", skip_serializing_if = "Option::is_none")]
25    pub previous_page_token: Option<String>,
26    /// List of job details for the given input.
27    #[serde(rename = "jobs", skip_serializing_if = "Option::is_none")]
28    pub jobs: Option<Vec<models::services::ServiceJob>>,
29}
30
31impl JobListing {
32    /// The payload for the `getServiceJobs` operation.
33    pub fn new() -> JobListing {
34        JobListing {
35            total_result_size: None,
36            next_page_token: None,
37            previous_page_token: None,
38            jobs: None,
39        }
40    }
41}
42