Struct foursquare::venue::SuggestOptionsBuilder
[−]
[src]
pub struct SuggestOptionsBuilder { /* fields omitted */ }
Builder for SuggestOptions
.
Methods
impl SuggestOptionsBuilder
[src]
fn ll<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
[src]
required Latitude and longitude of the user’s location. (Required for query searches)
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. Adds a geocode object to the response. (Required for query searches)
fn radius<VALUE: Into<Option<u32>>>(&mut self, value: VALUE) -> &mut Self
[src]
Limit results to venues within this many meters of the specified location. Defaults to a city-wide area. Only valid for requests with intent=browse, or requests with intent=checkin and categoryId or query. Does not apply to intent=match requests. The maximum supported radius is currently 100,000 meters.
fn sw<VALUE: Into<Option<String>>>(&mut self, value: VALUE) -> &mut Self
[src]
With ne, limits results to the bounding box defined by the latitude and longitude given by sw as its south-west corner, and ne as its north-east corner. The bounding box is only supported for intent=browse searches. Not valid with ll or radius. Bounding boxes with an area up to approximately 10,000 square kilometers are supported.
fn ne<VALUE: Into<Option<String>>>(&mut self, value: VALUE) -> &mut Self
[src]
See sw.
fn query<VALUE: Into<Option<String>>>(&mut self, value: VALUE) -> &mut Self
[src]
A search term to be applied against venue names.
fn limit<VALUE: Into<Option<u32>>>(&mut self, value: VALUE) -> &mut Self
[src]
Number of results to return, up to 50.
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 locale<VALUE: Into<Option<String>>>(&mut self, value: VALUE) -> &mut Self
[src]
fn build(&self) -> Result<SuggestOptions, String>
[src]
Trait Implementations
impl Default for SuggestOptionsBuilder
[src]
fn default() -> SuggestOptionsBuilder
[src]
Returns the "default value" for a type. Read more
impl Clone for SuggestOptionsBuilder
[src]
fn clone(&self) -> SuggestOptionsBuilder
[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