amazon-spapi 2.0.3

A Rust client library for Amazon Selling Partner API (SP-API)
Documentation
/*
 * The Selling Partner API for CustomerFeedback
 *
 * The Selling Partner API for Customer Feedback (Customer Feedback API) provides information about customer reviews and returns at both the item and browse node level.
 *
 * The version of the OpenAPI document: 2024-06-01
 * 
 * Generated by: https://openapi-generator.tech
 */

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

/// ItemReviewTopics : The top 10 positive and negative item review topics.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct ItemReviewTopics {
    /// A list of the most positive review topics. When the `sortBy` query parameter is set to `MENTIONS`, the number of reviews that mention the topic determines the topic's placement in the list. When `sortBy` is set to `STAR_RATING_IMPACT`, the effect that the topic has on the star rating of the item determines placement in the list. This value is `null` if there are not enough positive reviews for the specified ASIN.  **Max length:** 10
    #[serde(rename = "positiveTopics", skip_serializing_if = "Option::is_none")]
    pub positive_topics: Option<Vec<models::customer_feedback_2024_06_01::ItemReviewTopic>>,
    /// A list of the most negative review topics. When the `sortBy` query parameter is set to `MENTIONS`, the number of reviews that mention the topic determines the topic's placement in the list. When `sortBy` is set to `STAR_RATING_IMPACT`, the effect that the topic has on the star rating of the item determines placement in the list. This value is `null` if there are not enough negative reviews for the specified ASIN.  **Max length:** 10
    #[serde(rename = "negativeTopics", skip_serializing_if = "Option::is_none")]
    pub negative_topics: Option<Vec<models::customer_feedback_2024_06_01::ItemReviewTopic>>,
}

impl ItemReviewTopics {
    /// The top 10 positive and negative item review topics.
    pub fn new() -> ItemReviewTopics {
        ItemReviewTopics {
            positive_topics: None,
            negative_topics: None,
        }
    }
}