Skip to main content

amazon_spapi/models/aplus_content_2020_11_01/
asin_metadata.rs

1/*
2 * Selling Partner API for A+ Content Management
3 *
4 * Use the A+ Content API to build applications that help selling partners add rich marketing content to their Amazon product detail pages. Selling partners can use A+ content to share their brand and product story, which helps buyers make informed purchasing decisions. Selling partners use content modules to add images and text.
5 *
6 * The version of the OpenAPI document: 2020-11-01
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// AsinMetadata : The A+ Content ASIN with additional metadata for content management. If you don't include the `includedDataSet` parameter in a call to the `listContentDocumentAsinRelations` operation, the related ASINs are returned without metadata.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct AsinMetadata {
17    /// The Amazon Standard Identification Number (ASIN).
18    #[serde(rename = "asin")]
19    pub asin: String,
20    /// The set of ASIN badges.
21    #[serde(rename = "badgeSet", skip_serializing_if = "Option::is_none")]
22    pub badge_set: Option<Vec<models::aplus_content_2020_11_01::AsinBadge>>,
23    /// The Amazon Standard Identification Number (ASIN).
24    #[serde(rename = "parent", skip_serializing_if = "Option::is_none")]
25    pub parent: Option<String>,
26    /// The title for the ASIN in the Amazon catalog.
27    #[serde(rename = "title", skip_serializing_if = "Option::is_none")]
28    pub title: Option<String>,
29    /// The default image for the ASIN in the Amazon catalog.
30    #[serde(rename = "imageUrl", skip_serializing_if = "Option::is_none")]
31    pub image_url: Option<String>,
32    /// A set of content reference keys.
33    #[serde(rename = "contentReferenceKeySet", skip_serializing_if = "Option::is_none")]
34    pub content_reference_key_set: Option<Vec<String>>,
35}
36
37impl AsinMetadata {
38    /// The A+ Content ASIN with additional metadata for content management. If you don't include the `includedDataSet` parameter in a call to the `listContentDocumentAsinRelations` operation, the related ASINs are returned without metadata.
39    pub fn new(asin: String) -> AsinMetadata {
40        AsinMetadata {
41            asin,
42            badge_set: None,
43            parent: None,
44            title: None,
45            image_url: None,
46            content_reference_key_set: None,
47        }
48    }
49}
50