amazon_spapi/models/aplus_content_2020_11_01/content_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/// ContentMetadata : The A+ Content document's metadata.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct ContentMetadata {
17 /// The A+ Content document's name.
18 #[serde(rename = "name")]
19 pub name: String,
20 /// The marketplace ID is the globally unique identifier of a marketplace. To find the ID for your marketplace, refer to [Marketplace IDs](https://developer-docs.amazon.com/sp-api/docs/marketplace-ids).
21 #[serde(rename = "marketplaceId")]
22 pub marketplace_id: String,
23 #[serde(rename = "status")]
24 pub status: models::aplus_content_2020_11_01::ContentStatus,
25 /// The set of content badges.
26 #[serde(rename = "badgeSet")]
27 pub badge_set: Vec<models::aplus_content_2020_11_01::ContentBadge>,
28 /// The approximate age of the A+ Content document and metadata.
29 #[serde(rename = "updateTime")]
30 pub update_time: String,
31}
32
33impl ContentMetadata {
34 /// The A+ Content document's metadata.
35 pub fn new(name: String, marketplace_id: String, status: models::aplus_content_2020_11_01::ContentStatus, badge_set: Vec<models::aplus_content_2020_11_01::ContentBadge>, update_time: String) -> ContentMetadata {
36 ContentMetadata {
37 name,
38 marketplace_id,
39 status,
40 badge_set,
41 update_time,
42 }
43 }
44}
45