use crate::entity::BacklinksApiElementBacklinksTimeseriesNewLostSummary;
use serde::{Deserialize, Serialize};
/// Result of the Timeseries New & Lost Summary endpoint: new/lost counts over time.
/// See <https://docs.dataforseo.com/v3/backlinks/timeseries_new_lost_summary/live/>.
#[derive(Debug, Default, Serialize, Deserialize, Clone)]
pub struct BacklinksApiTimeseriesNewLostSummary {
/// Target the metrics refer to (domain, subdomain, or webpage).
pub target: Option<String>,
/// Start date of the range (`yyyy-mm-dd`).
pub date_from: Option<String>,
/// End date of the range (`yyyy-mm-dd`).
pub date_to: Option<String>,
/// Grouping interval: `day`, `week`, `month`, or `year`.
pub group_range: Option<String>,
/// Number of elements in the `items` array.
pub items_count: Option<i64>,
/// Elements returned for this result.
pub items: Option<Vec<BacklinksApiElementBacklinksTimeseriesNewLostSummary>>,
}