amazon-spapi 2.0.3

A Rust client library for Amazon Selling Partner API (SP-API)
Documentation
/*
 * Selling Partner API for Catalog Items
 *
 * The Selling Partner API for Catalog Items provides programmatic access to information about items in the Amazon catalog.  For more information, see the [Catalog Items API Use Case Guide](doc:catalog-items-api-v2020-12-01-use-case-guide).
 *
 * The version of the OpenAPI document: 2020-12-01
 * 
 * Generated by: https://openapi-generator.tech
 */

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

/// Refinements : Search refinements.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct Refinements {
    /// Brand search refinements.
    #[serde(rename = "brands")]
    pub brands: Vec<models::catalog_items_2020_12_01::BrandRefinement>,
    /// Classification search refinements.
    #[serde(rename = "classifications")]
    pub classifications: Vec<models::catalog_items_2020_12_01::ClassificationRefinement>,
}

impl Refinements {
    /// Search refinements.
    pub fn new(brands: Vec<models::catalog_items_2020_12_01::BrandRefinement>, classifications: Vec<models::catalog_items_2020_12_01::ClassificationRefinement>) -> Refinements {
        Refinements {
            brands,
            classifications,
        }
    }
}