1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
use crate::entity::serp::element::SerpApiElementGoogleJobsItem;
use crate::entity::{SerpApiElementRefinementChips, SerpApiHtmlItem};
use serde::{Deserialize, Serialize};
use serde_json::Value;
/// Google Job SERP data model.
#[derive(Debug, Default, Serialize, Deserialize, Clone)]
pub struct SerpApiGoogleJob<T> {
/// Search term the result was returned for.
pub keyword: String,
/// Search engine result type (the API `type` field).
#[serde(rename = "type")]
pub search_engine_type: Option<String>,
/// Search-engine domain the results were taken from.
pub se_domain: Option<String>,
/// DataForSEO location code the search was run for.
pub location_code: i32,
/// Language code the search was run for.
pub language_code: Option<String>,
/// Direct URL to reproduce the search on the search engine.
pub check_url: Option<String>,
/// UTC timestamp when the result was received.
pub datetime: Option<String>,
/// Search-engine spelling correction applied to the query, if any.
pub spell: Option<Value>,
/// Search-refinement chips shown for the query.
pub refinement_chips: Option<SerpApiElementRefinementChips>,
/// Distinct element types present in the returned SERP.
pub item_types: Option<Vec<String>>,
/// Total number of results reported by the search engine.
pub se_results_count: Option<i64>,
/// Number of items returned in this result.
pub items_count: Option<i64>,
/// Parsed elements of the result.
pub items: Option<Vec<T>>,
}
/// Google Job Advanced result type.
pub type SerpApiGoogleJobAdvanced = SerpApiGoogleJob<SerpApiElementGoogleJobsItem>;
/// Google Job Html result type.
pub type SerpApiGoogleJobHtml = SerpApiGoogleJob<SerpApiHtmlItem>;