Skip to main content

amazon_spapi/models/catalog_items_2020_12_01/
refinements.rs

1/*
2 * Selling Partner API for Catalog Items
3 *
4 * 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).
5 *
6 * The version of the OpenAPI document: 2020-12-01
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// Refinements : Search refinements.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct Refinements {
17    /// Brand search refinements.
18    #[serde(rename = "brands")]
19    pub brands: Vec<models::catalog_items_2020_12_01::BrandRefinement>,
20    /// Classification search refinements.
21    #[serde(rename = "classifications")]
22    pub classifications: Vec<models::catalog_items_2020_12_01::ClassificationRefinement>,
23}
24
25impl Refinements {
26    /// Search refinements.
27    pub fn new(brands: Vec<models::catalog_items_2020_12_01::BrandRefinement>, classifications: Vec<models::catalog_items_2020_12_01::ClassificationRefinement>) -> Refinements {
28        Refinements {
29            brands,
30            classifications,
31        }
32    }
33}
34