amazon-spapi 2.0.3

A Rust client library for Amazon Selling Partner API (SP-API)
Documentation
/*
 * Selling Partner API for Supply Sources
 *
 * Manage configurations and capabilities of seller supply sources.
 *
 * The version of the OpenAPI document: 2020-07-01
 * 
 * Generated by: https://openapi-generator.tech
 */

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

/// ParkingConfiguration : The parking configuration.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct ParkingConfiguration {
    #[serde(rename = "parkingCostType", skip_serializing_if = "Option::is_none")]
    pub parking_cost_type: Option<models::supply_sources_2020_07_01::ParkingCostType>,
    #[serde(rename = "parkingSpotIdentificationType", skip_serializing_if = "Option::is_none")]
    pub parking_spot_identification_type: Option<models::supply_sources_2020_07_01::ParkingSpotIdentificationType>,
    /// An unsigned integer that can be only positive or zero.
    #[serde(rename = "numberOfParkingSpots", skip_serializing_if = "Option::is_none")]
    pub number_of_parking_spots: Option<i32>,
}

impl ParkingConfiguration {
    /// The parking configuration.
    pub fn new() -> ParkingConfiguration {
        ParkingConfiguration {
            parking_cost_type: None,
            parking_spot_identification_type: None,
            number_of_parking_spots: None,
        }
    }
}