Skip to main content

data_for_seo/entity/content_analysis/
rating_distribution.rs

1use crate::entity::ContentAnalysisApiSummary;
2use serde::{Deserialize, Serialize};
3
4/// Result of `content_analysis/rating_distribution/live`: citation metrics for
5/// a bucket of the content-rating scale.
6/// See <https://docs.dataforseo.com/v3/content_analysis/rating_distribution/live/>.
7#[derive(Debug, Default, Serialize, Deserialize, Clone)]
8pub struct ContentAnalysisApiRatingDistribution {
9    /// Element type.
10    #[serde(rename = "type")]
11    pub element_type: Option<String>,
12    /// Minimum rating of this bucket on the distribution scale.
13    pub min: Option<f64>,
14    /// Maximum rating of this bucket on the distribution scale.
15    pub max: Option<f64>,
16    /// Citation metrics for this rating bucket.
17    pub metrics: Option<ContentAnalysisApiSummary>,
18}