Skip to main content

data_for_seo/entity/backlinks/element/
backlinks_domain_intersection.rs

1use serde::{Deserialize, Serialize};
2use std::collections::HashMap;
3
4/// Per-target metrics inside a Domain Intersection result item, keyed by target id.
5/// See <https://docs.dataforseo.com/v3/backlinks/domain_intersection/live/>.
6#[derive(Debug, Default, Serialize, Deserialize, Clone)]
7pub struct BacklinksApiElementBacklinksDomainIntersection {
8    /// Element type identifier for this item.
9    #[serde(rename = "type")]
10    pub type_of_element: Option<String>,
11    /// Target the metrics refer to (domain, subdomain, or webpage).
12    pub target: Option<String>,
13    /// Rank of this element on the configured scale (0-1000 by default).
14    pub rank: Option<i64>,
15    /// Number of backlinks pointing to the target.
16    pub backlinks: Option<i64>,
17    /// Date and time the element was first found (UTC).
18    pub first_seen: Option<String>,
19    /// Date and time the element was last seen before being lost (UTC).
20    pub lost_date: Option<String>,
21    /// Average spam score of the backlinks (0-100).
22    pub backlinks_spam_score: Option<i64>,
23    /// Number of broken backlinks.
24    pub broken_backlinks: Option<i64>,
25    /// Number of referring pages returning a 4xx/5xx status.
26    pub broken_pages: Option<i64>,
27    /// Number of referring domains pointing to the target.
28    pub referring_domains: Option<i64>,
29    /// Number of referring domains with at least one nofollow link.
30    pub referring_domains_nofollow: Option<i64>,
31    /// Number of referring main (root) domains.
32    pub referring_main_domains: Option<i64>,
33    /// Number of referring main domains with at least one nofollow link.
34    pub referring_main_domains_nofollow: Option<i64>,
35    /// Number of referring IP addresses.
36    pub referring_ips: Option<i64>,
37    /// Number of referring subnetworks.
38    pub referring_subnets: Option<i64>,
39    /// Number of referring pages pointing to the target.
40    pub referring_pages: Option<i64>,
41    /// Number of referring pages with at least one nofollow link.
42    pub referring_pages_nofollow: Option<i64>,
43    /// Distribution of referring links by top-level domain with counts.
44    pub referring_links_tld: Option<HashMap<String, i64>>,
45    /// Distribution of referring link types (anchor, image, link, ...) with counts.
46    pub referring_links_types: Option<HashMap<String, i64>>,
47    /// Distribution of referring link attributes (nofollow, ugc, ...) with counts.
48    pub referring_links_attributes: Option<HashMap<String, i64>>,
49    /// Distribution of referring links by platform type with counts.
50    pub referring_links_platform_types: Option<HashMap<String, i64>>,
51    /// Distribution of referring links by HTML semantic location with counts.
52    pub referring_links_semantic_locations: Option<HashMap<String, i64>>,
53    /// Distribution of referring links by ISO country code with counts.
54    pub referring_links_countries: Option<HashMap<String, i64>>,
55}