data-for-seo 0.3.0

Client library for the DataForSEO API v3 (SERP, Keywords Data, Labs, Backlinks, OnPage, and more)
Documentation
use serde::{Deserialize, Serialize};
use serde_json::Value;

/// A single task-id record returned by the ID List endpoint.
/// See <https://docs.dataforseo.com/v3/backlinks/id_list/>.
#[derive(Debug, Default, Serialize, Deserialize, Clone)]
pub struct BacklinksApiIdListItem {
    /// Unique task identifier (UUID).
    pub id: Option<String>,
    /// Endpoint path of the task (e.g. `v3/backlinks/backlinks/live`).
    pub url: Option<String>,
    /// Date and time the task was created (UTC).
    pub datetime_posted: Option<String>,
    /// Date and time the task finished (UTC).
    pub datetime_done: Option<String>,
    /// Task status code as a string (e.g. "20000").
    pub status: Option<String>,
    /// Cost of the task in USD.
    pub cost: Option<f64>,
    /// Original POST request parameters of the task.
    pub metadata: Option<Value>,
}