amazon-spapi 2.0.3

A Rust client library for Amazon Selling Partner API (SP-API)
Documentation
/*
 * The Selling Partner API for Automotive.
 *
 * The Selling Partner API for Automotive provides programmatic access to information needed by selling partners to provide compatibility information about their listed products.
 *
 * The version of the OpenAPI document: 2024-11-01
 * 
 * Generated by: https://openapi-generator.tech
 */

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

/// MonthAndYear : Represents a month in a specific year.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct MonthAndYear {
    /// Year in YYYY format
    #[serde(rename = "year", skip_serializing_if = "Option::is_none")]
    pub year: Option<f64>,
    /// Month in MM format
    #[serde(rename = "month", skip_serializing_if = "Option::is_none")]
    pub month: Option<f64>,
}

impl MonthAndYear {
    /// Represents a month in a specific year.
    pub fn new() -> MonthAndYear {
        MonthAndYear {
            year: None,
            month: None,
        }
    }
}