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

/// ReviewTrendMetrics : The item review trend metrics.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct ReviewTrendMetrics {
    /// The percentage of reviews that mention the topic.
    #[serde(rename = "occurrencePercentage")]
    pub occurrence_percentage: f32,
}

impl ReviewTrendMetrics {
    /// The item review trend metrics.
    pub fn new(occurrence_percentage: f32) -> ReviewTrendMetrics {
        ReviewTrendMetrics {
            occurrence_percentage,
        }
    }
}