Skip to main content

hermes_ebay_commerce_catalog/models/
refinement.rs

1/*
2 * Catalog API
3 *
4 * The Catalog API allows users to search for and locate an eBay catalog product that is a direct match for the product that they wish to sell. Listing against an eBay catalog product helps insure that all listings (based off of that catalog product) have complete and accurate information. In addition to helping to create high-quality listings, another benefit to the seller of using catalog information to create listings is that much of the details of the listing will be prefilled, including the listing title, the listing description, the item specifics, and a stock image for the product (if available). Sellers will not have to enter item specifics themselves, and the overall listing process is a lot faster and easier.
5 *
6 * The version of the OpenAPI document: v1_beta.5.2
7 * Contact: your-email@example.com
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// Refinement : This type identifies a product category and the aspects associated with that category. Each aspect distribution container returns the distribution of values that have been used for the aspect.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct Refinement {
17    /// Contains information about one or more aspects that are associated with the category identified by <b>dominantCategoryId</b>.
18    #[serde(rename = "aspectDistributions", skip_serializing_if = "Option::is_none")]
19    pub aspect_distributions: Option<Vec<models::AspectDistribution>>,
20    /// The ID of the category that eBay determines is most likely to cover the products matching the search criteria.
21    #[serde(rename = "dominantCategoryId", skip_serializing_if = "Option::is_none")]
22    pub dominant_category_id: Option<String>,
23}
24
25impl Refinement {
26    /// This type identifies a product category and the aspects associated with that category. Each aspect distribution container returns the distribution of values that have been used for the aspect.
27    pub fn new() -> Refinement {
28        Refinement {
29            aspect_distributions: None,
30            dominant_category_id: None,
31        }
32    }
33}
34