amazon-spapi 2.0.3

A Rust client library for Amazon Selling Partner API (SP-API)
Documentation
/*
 * Selling Partner API for Catalog Items
 *
 * Use the Selling Partner API for Catalog Items to retrieve information about items in the Amazon catalog.  For more information, refer to the [Catalog Items API Use Case Guide](https://developer-docs.amazon.com/sp-api/docs/:catalog-items-api-v2022-04-01-use-case-guide).
 *
 * The version of the OpenAPI document: 2022-04-01
 * 
 * Generated by: https://openapi-generator.tech
 */

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

/// Refinements : Optional fields that you can use to refine your search results.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct Refinements {
    /// A list of brands you can use to refine your search.
    #[serde(rename = "brands")]
    pub brands: Vec<models::catalog_items_2022_04_01::BrandRefinement>,
    /// A list of classifications you can use to refine your search.
    #[serde(rename = "classifications")]
    pub classifications: Vec<models::catalog_items_2022_04_01::ClassificationRefinement>,
}

impl Refinements {
    /// Optional fields that you can use to refine your search results.
    pub fn new(brands: Vec<models::catalog_items_2022_04_01::BrandRefinement>, classifications: Vec<models::catalog_items_2022_04_01::ClassificationRefinement>) -> Refinements {
        Refinements {
            brands,
            classifications,
        }
    }
}