amazon_spapi/models/product_pricing_2022_05_01/segment.rs
1/*
2 * Selling Partner API for Pricing
3 *
4 * The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer pricing information for Amazon Marketplace products. For more information, refer to the [Product Pricing v2022-05-01 Use Case Guide](https://developer-docs.amazon.com/sp-api/docs/product-pricing-api-v2022-05-01-use-case-guide).
5 *
6 * The version of the OpenAPI document: 2022-05-01
7 *
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// Segment : Input segment for featured offer expected price. The segment contains the location information for which featured offer expected price is requested.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct Segment {
17 #[serde(rename = "segmentDetails", skip_serializing_if = "Option::is_none")]
18 pub segment_details: Option<Box<models::product_pricing_2022_05_01::SegmentDetails>>,
19}
20
21impl Segment {
22 /// Input segment for featured offer expected price. The segment contains the location information for which featured offer expected price is requested.
23 pub fn new() -> Segment {
24 Segment {
25 segment_details: None,
26 }
27 }
28}
29