amazon-spapi 2.0.3

A Rust client library for Amazon Selling Partner API (SP-API)
Documentation
/*
 * The Selling Partner API for Amazon Warehousing and Distribution
 *
 * The Selling Partner API for Amazon Warehousing and Distribution (AWD) provides programmatic access to information about AWD shipments and inventory.
 *
 * The version of the OpenAPI document: 2024-05-09
 * 
 * Generated by: https://openapi-generator.tech
 */

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

/// ProductAttribute : Product instance attribute that is not described at the SKU level in the catalog.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct ProductAttribute {
    /// Product attribute name.
    #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
    pub name: Option<String>,
    /// Product attribute value.
    #[serde(rename = "value", skip_serializing_if = "Option::is_none")]
    pub value: Option<String>,
}

impl ProductAttribute {
    /// Product instance attribute that is not described at the SKU level in the catalog.
    pub fn new() -> ProductAttribute {
        ProductAttribute {
            name: None,
            value: None,
        }
    }
}