Struct rtrend::related_queries::RelatedQueries [−][src]
pub struct RelatedQueries { pub client: Client, }
Fields
client: Client
Implementations
Retrieve Queries data for all keywords.
Retrieve data for all keywords set within the client.
Returns a JSON serde Value (serde_json::Value).
Example
let keywords = Keywords::new(vec!["Github vs Gitlab"]); let country = Country::new("ALL"); let client = Client::new(keywords, country).build(); let related_queries = RelatedQueries::new(client).get(); println!("{}", related_queries);
Panics
Panic if the client have not been built.
ⓘ
let keywords = Keywords::new(vec!["Github vs Gitlab"]); let country = Country::new("ALL"); let client = Client::new(keywords, country); let related_queries = RelatedQueries::new(client).get();
Retrieve Queries data for a specific keywords.
Retrieve data for a specific keyword set within the client.
Returns a JSON serde Value (serde_json::Value).
let keywords = Keywords::new(vec!["Github", "Gitlab"]); let country = Country::new("ALL"); let client = Client::new(keywords, country).build(); let related_queries = RelatedQueries::new(client).get_for("Gitlab"); println!("{}", related_queries);
Trait Implementations
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl !RefUnwindSafe for RelatedQueries
impl Send for RelatedQueries
impl Sync for RelatedQueries
impl Unpin for RelatedQueries
impl !UnwindSafe for RelatedQueries
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more