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

/// BrowseNodeOccurrence : The browse node review trend occurrence metrics.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct BrowseNodeOccurrence {
    /// The percentage of reviews of products in the browse node that mention a topic.
    #[serde(rename = "allProducts")]
    pub all_products: f32,
}

impl BrowseNodeOccurrence {
    /// The browse node review trend occurrence metrics.
    pub fn new(all_products: f32) -> BrowseNodeOccurrence {
        BrowseNodeOccurrence {
            all_products,
        }
    }
}