1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
/*
 * Selling Partner API for Catalog Items
 *
 * The Selling Partner API for Catalog Items helps you programmatically retrieve item details for items in the catalog.
 *
 * The version of the OpenAPI document: v0
 * 
 * Generated by: https://openapi-generator.tech
 */

/// Item : An item in the Amazon catalog.



#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
pub struct Item {
    #[serde(default, rename = "Identifiers")]
    pub identifiers: Box<crate::models::IdentifierType>,
    /// A list of attributes for the item.
    #[serde(default, rename = "AttributeSets", skip_serializing_if = "Option::is_none")]
    pub attribute_sets: Option<Vec<crate::models::AttributeSetListType>>,
    /// A list of variation relationship information, if applicable for the item.
    #[serde(default, rename = "Relationships", skip_serializing_if = "Option::is_none")]
    pub relationships: Option<Vec<crate::models::RelationshipType>>,
    /// A list of sales rank information for the item by category.
    #[serde(default, rename = "SalesRankings", skip_serializing_if = "Option::is_none")]
    pub sales_rankings: Option<Vec<crate::models::SalesRankType>>,
}

impl Item {
    /// An item in the Amazon catalog.
    pub fn new(identifiers: crate::models::IdentifierType) -> Item {
        Item {
            identifiers: Box::new(identifiers),
            attribute_sets: None,
            relationships: None,
            sales_rankings: None,
        }
    }
}