Skip to main content

data_for_seo/entity/on_page/
errors.rs

1use serde::{Deserialize, Serialize};
2
3/// A single error record returned by the OnPage Errors endpoint.
4/// See <https://docs.dataforseo.com/v3/on_page/errors/>.
5#[derive(Debug, Default, Serialize, Deserialize, Clone)]
6pub struct OnPageDataApiError {
7    /// Unique task identifier (UUID).
8    pub id: Option<String>,
9    /// Date and time the error occurred (UTC).
10    pub datetime: Option<String>,
11    /// API function the task called.
12    pub function: Option<String>,
13    /// DataForSEO error code.
14    pub error_code: Option<i32>,
15    /// Human-readable error description.
16    pub error_message: Option<String>,
17    /// URL of the API call that produced the error.
18    pub http_url: Option<String>,
19    /// HTTP method used for the failed call.
20    pub http_method: Option<String>,
21    /// HTTP status code returned for the failed call.
22    pub http_code: Option<i32>,
23    /// Duration of the HTTP request in seconds.
24    pub http_time: Option<f64>,
25    /// Body of the server response for the failed call.
26    pub http_response: Option<String>,
27}