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

/// ChildAsinMetrics : The review topic metrics for other child ASINs that have the same parent ASIN. This value is `null` if there isn't any child ASIN metric data.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct ChildAsinMetrics {
    #[serde(rename = "mostMentions", skip_serializing_if = "Option::is_none")]
    pub most_mentions: Option<Box<models::customer_feedback_2024_06_01::ChildAsinMentionMetrics>>,
    #[serde(rename = "leastMentions", skip_serializing_if = "Option::is_none")]
    pub least_mentions: Option<Box<models::customer_feedback_2024_06_01::ChildAsinMentionMetrics>>,
}

impl ChildAsinMetrics {
    /// The review topic metrics for other child ASINs that have the same parent ASIN. This value is `null` if there isn't any child ASIN metric data.
    pub fn new() -> ChildAsinMetrics {
        ChildAsinMetrics {
            most_mentions: None,
            least_mentions: None,
        }
    }
}