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};

/// ItemReviewTrends : The 10 most positive and most negative review topics for all items in a browse node.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct ItemReviewTrends {
    /// A list of the most positive review topics. The percentage of reviews that contain the topic determines the topic's 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::ItemReviewTrend>>,
    /// A list of the most negative review topics. The percentage of reviews that contain the topic determines the topic's 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::ItemReviewTrend>>,
}

impl ItemReviewTrends {
    /// The 10 most positive and most negative review topics for all items in a browse node.
    pub fn new() -> ItemReviewTrends {
        ItemReviewTrends {
            positive_topics: None,
            negative_topics: None,
        }
    }
}