Struct rtrend::region_interest::RegionInterest [−][src]
pub struct RegionInterest { pub client: Client, }
Fields
client: Client
Implementations
Create a RegionInterest
Instance.
Returns a RegionInterest
instance
Retrieve maps 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!["hacker"]); let country = Country::new("US"); let client = Client::new(keywords, country).build(); let region_interest = RegionInterest::new(client).get(); println!("{}", region_interest);
Panics
Panic if the client have not been built.
ⓘ
let keywords = Keywords::new(vec!["hacker"]); let country = Country::new("US"); // Client not built let client = Client::new(keywords, country); let region_interest = RegionInterest::new(client).get();
Retrieve maps data for a specific keywords.
Retrieve the data for one keywords set within the client.
Returns a JSON serde Value (serde_json::Value).
Example
let keywords = Keywords::new(vec!["PS4","XBOX","PC"]); let country = Country::new("ALL"); let client = Client::new(keywords, country).build(); let region_interest = RegionInterest::new(client).get_for("PS4"); println!("{}", region_interest);
Panics
Will panic if input keyword have not been set previously for the client.
ⓘ
let keywords = Keywords::new(vec!["PS4","XBOX","PC"]); let country = Country::new("ALL"); let client = Client::new(keywords, country).build(); let region_interest = RegionInterest::new(client).get_for("WII");
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for RegionInterest
impl Send for RegionInterest
impl Sync for RegionInterest
impl Unpin for RegionInterest
impl !UnwindSafe for RegionInterest
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more