use crate::models;
use serde::{Deserialize, Serialize};
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct Refinements {
#[serde(rename = "brands")]
pub brands: Vec<models::catalog_items_2020_12_01::BrandRefinement>,
#[serde(rename = "classifications")]
pub classifications: Vec<models::catalog_items_2020_12_01::ClassificationRefinement>,
}
impl 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,
}
}
}