amazon-spapi 2.0.3

A Rust client library for Amazon Selling Partner API (SP-API)
Documentation
/*
 * Selling Partner API for Pricing
 *
 * 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).
 *
 * The version of the OpenAPI document: 2022-05-01
 * 
 * Generated by: https://openapi-generator.tech
 */

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

/// Segment : Input segment for featured offer expected price. The segment contains the location information for which featured offer expected price is requested.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct Segment {
    #[serde(rename = "segmentDetails", skip_serializing_if = "Option::is_none")]
    pub segment_details: Option<Box<models::product_pricing_2022_05_01::SegmentDetails>>,
}

impl Segment {
    /// Input segment for featured offer expected price. The segment contains the location information for which featured offer expected price is requested.
    pub fn new() -> Segment {
        Segment {
            segment_details: None,
        }
    }
}