amazon-spapi 2.0.3

A Rust client library for Amazon Selling Partner API (SP-API)
Documentation
/*
 * Selling Partner API for Services
 *
 * With the Services API, you can build applications that help service providers get and modify their service orders and manage their resources.
 *
 * The version of the OpenAPI document: v1
 * 
 * Generated by: https://openapi-generator.tech
 */

use crate::models;
use serde::{Deserialize, Serialize};

/// FixedSlotCapacity : Response schema for the `getFixedSlotCapacity` operation.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct FixedSlotCapacity {
    /// Resource Identifier.
    #[serde(rename = "resourceId", skip_serializing_if = "Option::is_none")]
    pub resource_id: Option<String>,
    /// The duration of each slot which is returned. This value will be a multiple of 5 and fall in the following range: 5 <= `slotDuration` <= 360.
    #[serde(rename = "slotDuration", skip_serializing_if = "Option::is_none")]
    pub slot_duration: Option<f64>,
    /// Array of capacity slots in fixed slot format.
    #[serde(rename = "capacities", skip_serializing_if = "Option::is_none")]
    pub capacities: Option<Vec<models::services::FixedSlot>>,
    /// Next page token, if there are more pages.
    #[serde(rename = "nextPageToken", skip_serializing_if = "Option::is_none")]
    pub next_page_token: Option<String>,
}

impl FixedSlotCapacity {
    /// Response schema for the `getFixedSlotCapacity` operation.
    pub fn new() -> FixedSlotCapacity {
        FixedSlotCapacity {
            resource_id: None,
            slot_duration: None,
            capacities: None,
            next_page_token: None,
        }
    }
}