Struct foursquare::venue::ExploreOptionsBuilder
[−]
[src]
pub struct ExploreOptionsBuilder { /* fields omitted */ }
Builder for ExploreOptions
.
Methods
impl ExploreOptionsBuilder
[src]
fn ll<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
[src]
required unless near is provided. Latitude and longitude of the user’s location.
fn near<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
[src]
required unless ll is provided. A string naming a place in the world. If the near string is not geocodable, returns a failed_geocode error. Otherwise, searches within the bounds of the geocode and adds a geocode object to the response.
fn ll_acc<VALUE: Into<Option<f64>>>(&mut self, value: VALUE) -> &mut Self
[src]
Accuracy of latitude and longitude, in meters.
fn alt<VALUE: Into<Option<u32>>>(&mut self, value: VALUE) -> &mut Self
[src]
Altitude of the user’s location, in meters.
fn alt_acc<VALUE: Into<Option<f64>>>(&mut self, value: VALUE) -> &mut Self
[src]
Accuracy of the user’s altitude, in meters.
fn radius<VALUE: Into<Option<u32>>>(&mut self, value: VALUE) -> &mut Self
[src]
Radius to search within, in meters. If radius is not specified, a suggested radius will be used based on the density of venues in the area. The maximum supported radius is currently 100,000 meters.
fn section<VALUE: Into<Option<String>>>(&mut self, value: VALUE) -> &mut Self
[src]
One of food, drinks, coffee, shops, arts, outdoors, sights, trending, nextVenues (venues frequently visited after a given venue), or topPicks (a mix of recommendations generated without a query from the user). Choosing one of these limits results to venues with the specified category or property.
fn query<VALUE: Into<Option<String>>>(&mut self, value: VALUE) -> &mut Self
[src]
A term to be searched against a venue’s tips, category, etc. The query parameter has no effect when a section is specified.
fn limit<VALUE: Into<Option<u32>>>(&mut self, value: VALUE) -> &mut Self
[src]
Number of results to return, up to 50.
fn offset<VALUE: Into<Option<u32>>>(&mut self, value: VALUE) -> &mut Self
[src]
Used to page through results, up to 50.
fn novelty<VALUE: Into<Option<String>>>(&mut self, value: VALUE) -> &mut Self
[src]
Pass new or old to limit results to places the acting user hasn’t been or has been, respectively. Omitting this parameter returns a mixture of old and new venues.
fn friend_visits<VALUE: Into<Option<String>>>(
&mut self,
value: VALUE
) -> &mut Self
[src]
&mut self,
value: VALUE
) -> &mut Self
Pass visited or notvisited to limit results to places the acting user’s friends have or haven’t been, respectively. Omitting this parameter returns a mixture of venues to which the user’s friends have or haven’t been.
fn time<VALUE: Into<Option<String>>>(&mut self, value: VALUE) -> &mut Self
[src]
Pass any to retrieve results for any time of day. Omitting this parameter returns results targeted to the current time of day.
fn day<VALUE: Into<Option<String>>>(&mut self, value: VALUE) -> &mut Self
[src]
Pass any to retrieve results for any day of the week. Omitting this parameter returns results targeted to the current day of the week.
fn venue_photos<VALUE: Into<Option<u16>>>(&mut self, value: VALUE) -> &mut Self
[src]
Boolean flag to include a photo in the response for each venue, if one is available. Default is 0 (no photos). Photos are returned as part of the venue JSON object.
fn last_venue<VALUE: Into<Option<String>>>(&mut self, value: VALUE) -> &mut Self
[src]
A venue ID to use in combination with the intent=nextVenues parameter, which returns venues users often visit after a given venue. If intent=nextVenues is specified but lastVenue is not, the user’s last check-in will be used if it is within 2 hours. If the user has not checked in within the last 2 hours, no results will be returned.
fn open_now<VALUE: Into<Option<u16>>>(&mut self, value: VALUE) -> &mut Self
[src]
Boolean flag to only include venues that are open now. This prefers official provider hours but falls back to popular check-in hours.
fn sort_by_distance<VALUE: Into<Option<u16>>>(
&mut self,
value: VALUE
) -> &mut Self
[src]
&mut self,
value: VALUE
) -> &mut Self
Boolean flag to sort the results by distance instead of relevance.
fn price<VALUE: Into<Option<String>>>(&mut self, value: VALUE) -> &mut Self
[src]
Comma separated list of price points. Currently the valid range of price points are [1,2,3,4], 1 being the least expensive, 4 being the most expensive. For food venues, in the United States, 1 is < $10 an entree, 2 is $10-$20 an entree, 3 is $20-$30 an entree, 4 is > $30 an entree.
fn saved<VALUE: Into<Option<u16>>>(&mut self, value: VALUE) -> &mut Self
[src]
Boolean flag to only include venues that the user has saved on their To-Do list or to another list.
fn locale<VALUE: Into<Option<String>>>(&mut self, value: VALUE) -> &mut Self
[src]
fn build(&self) -> Result<ExploreOptions, String>
[src]
Trait Implementations
impl Default for ExploreOptionsBuilder
[src]
fn default() -> ExploreOptionsBuilder
[src]
Returns the "default value" for a type. Read more
impl Clone for ExploreOptionsBuilder
[src]
fn clone(&self) -> ExploreOptionsBuilder
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more