Skip to main content

data_for_seo/entity/domain_analytics/
aggregation_technologies.rs

1use serde::{Deserialize, Serialize};
2
3/// Result object for the `aggregation_technologies` endpoint.
4/// See <https://docs.dataforseo.com/v3/domain_analytics/technologies/aggregation_technologies/live/>.
5#[derive(Debug, Default, Serialize, Deserialize, Clone)]
6pub struct DomainAnalyticsApiAggregationTechnologies {
7    /// Total number of aggregation buckets matching the request.
8    pub total_count: Option<i64>,
9    /// Number of aggregation buckets returned in `items`.
10    pub items_count: Option<i64>,
11    /// The aggregated technology usage buckets.
12    pub items: Option<Vec<DomainAnalyticsApiAggregationTechnologiesItem>>,
13}
14
15/// A single aggregated technology usage bucket.
16#[derive(Debug, Default, Serialize, Deserialize, Clone)]
17pub struct DomainAnalyticsApiAggregationTechnologiesItem {
18    /// Result element type, e.g. `aggregation_technologies_item`.
19    #[serde(rename = "type")]
20    pub item_type: Option<String>,
21    /// Technology group ID of this bucket.
22    pub group: Option<String>,
23    /// Technology category ID of this bucket.
24    pub category: Option<String>,
25    /// Technology name of this bucket.
26    pub technology: Option<String>,
27    /// Number of domains using any technology from this group.
28    pub groups_count: Option<i64>,
29    /// Number of domains using any technology from this category.
30    pub categories_count: Option<i64>,
31    /// Number of domains using this specific technology.
32    pub technologies_count: Option<i64>,
33}