Skip to main content

data_for_seo/entity/domain_analytics/
errors.rs

1use serde::{Deserialize, Serialize};
2
3/// A single failed task reported by the Domain Analytics `errors` endpoint.
4/// See <https://docs.dataforseo.com/v3/domain_analytics/errors/>.
5#[derive(Debug, Default, Serialize, Deserialize, Clone)]
6pub struct DomainAnalyticsApiErrorItem {
7    /// Identifier of the failed task.
8    pub id: Option<String>,
9    /// Time the error occurred (UTC).
10    pub datetime: Option<String>,
11    /// API function that produced the error.
12    pub function: Option<String>,
13    /// DataForSEO status code of the error.
14    pub error_code: Option<i32>,
15    /// Human-readable error message.
16    pub error_message: Option<String>,
17    /// URL that was requested when the error occurred.
18    pub http_url: Option<String>,
19    /// HTTP method used for the failed request.
20    pub http_method: Option<String>,
21    /// HTTP status code returned for the failed request.
22    pub http_code: Option<i32>,
23    /// Time (seconds) the failed request took.
24    pub http_time: Option<f64>,
25    /// Raw HTTP response body captured for the error.
26    pub http_response: Option<String>,
27}