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};

/// RangeCapacity : Range capacity entity where each entry has a capacity type and corresponding slots.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct RangeCapacity {
    #[serde(rename = "capacityType", skip_serializing_if = "Option::is_none")]
    pub capacity_type: Option<models::services::CapacityType>,
    /// Array of capacity slots in range slot format.
    #[serde(rename = "slots", skip_serializing_if = "Option::is_none")]
    pub slots: Option<Vec<models::services::RangeSlot>>,
}

impl RangeCapacity {
    /// Range capacity entity where each entry has a capacity type and corresponding slots.
    pub fn new() -> RangeCapacity {
        RangeCapacity {
            capacity_type: None,
            slots: None,
        }
    }
}