pub struct Venue {
pub location: BoxWrapper<Unbox<Location>>,
pub title: String,
pub address: String,
pub foursquare_id: Option<String>,
pub foursquare_type: Option<String>,
pub google_place_id: Option<String>,
pub google_place_type: Option<String>,
}
Expand description
This object represents a venue.
Fields§
§location: BoxWrapper<Unbox<Location>>
Venue location. Can’t be a live location
title: String
Name of the venue
address: String
Address of the venue
foursquare_id: Option<String>
Optional. Foursquare identifier of the venue
foursquare_type: Option<String>
Optional. Foursquare type of the venue. (For example, “arts_entertainment/default”, “arts_entertainment/aquarium” or “food/icecream”.)
google_place_id: Option<String>
Optional. Google Places identifier of the venue
google_place_type: Option<String>
Optional. Google Places type of the venue. (See supported types.)
Implementations§
Source§impl Venue
impl Venue
pub fn new<A: Into<Location>>( location: A, title: String, address: String, ) -> Self
Sourcepub fn get_location<'a>(&'a self) -> &'a Location
pub fn get_location<'a>(&'a self) -> &'a Location
Venue location. Can’t be a live location
Sourcepub fn set_location<'a>(&'a mut self, location: Location) -> &'a mut Self
pub fn set_location<'a>(&'a mut self, location: Location) -> &'a mut Self
Venue location. Can’t be a live location
Sourcepub fn get_address<'a>(&'a self) -> &'a str
pub fn get_address<'a>(&'a self) -> &'a str
Address of the venue
Sourcepub fn set_address<'a>(&'a mut self, address: String) -> &'a mut Self
pub fn set_address<'a>(&'a mut self, address: String) -> &'a mut Self
Address of the venue
Sourcepub fn get_foursquare_id<'a>(&'a self) -> Option<&'a str>
pub fn get_foursquare_id<'a>(&'a self) -> Option<&'a str>
Optional. Foursquare identifier of the venue
Sourcepub fn set_foursquare_id<'a>(
&'a mut self,
foursquare_id: Option<String>,
) -> &'a mut Self
pub fn set_foursquare_id<'a>( &'a mut self, foursquare_id: Option<String>, ) -> &'a mut Self
Optional. Foursquare identifier of the venue
Sourcepub fn get_foursquare_type<'a>(&'a self) -> Option<&'a str>
pub fn get_foursquare_type<'a>(&'a self) -> Option<&'a str>
Optional. Foursquare type of the venue. (For example, “arts_entertainment/default”, “arts_entertainment/aquarium” or “food/icecream”.)
Sourcepub fn set_foursquare_type<'a>(
&'a mut self,
foursquare_type: Option<String>,
) -> &'a mut Self
pub fn set_foursquare_type<'a>( &'a mut self, foursquare_type: Option<String>, ) -> &'a mut Self
Optional. Foursquare type of the venue. (For example, “arts_entertainment/default”, “arts_entertainment/aquarium” or “food/icecream”.)
Sourcepub fn get_google_place_id<'a>(&'a self) -> Option<&'a str>
pub fn get_google_place_id<'a>(&'a self) -> Option<&'a str>
Optional. Google Places identifier of the venue
Sourcepub fn set_google_place_id<'a>(
&'a mut self,
google_place_id: Option<String>,
) -> &'a mut Self
pub fn set_google_place_id<'a>( &'a mut self, google_place_id: Option<String>, ) -> &'a mut Self
Optional. Google Places identifier of the venue
Sourcepub fn get_google_place_type<'a>(&'a self) -> Option<&'a str>
pub fn get_google_place_type<'a>(&'a self) -> Option<&'a str>
Optional. Google Places type of the venue. (See supported types.)
Sourcepub fn set_google_place_type<'a>(
&'a mut self,
google_place_type: Option<String>,
) -> &'a mut Self
pub fn set_google_place_type<'a>( &'a mut self, google_place_type: Option<String>, ) -> &'a mut Self
Optional. Google Places type of the venue. (See supported types.)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Venue
impl<'de> Deserialize<'de> for Venue
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl From<NoSkipVenue> for Venue
impl From<NoSkipVenue> for Venue
Source§fn from(t: NoSkipVenue) -> Self
fn from(t: NoSkipVenue) -> Self
Source§impl Into<NoSkipVenue> for Venue
impl Into<NoSkipVenue> for Venue
Source§fn into(self) -> NoSkipVenue
fn into(self) -> NoSkipVenue
Source§impl Ord for Venue
impl Ord for Venue
Source§impl PartialOrd for Venue
impl PartialOrd for Venue
impl Eq for Venue
impl StructuralPartialEq for Venue
Auto Trait Implementations§
impl Freeze for Venue
impl RefUnwindSafe for Venue
impl Send for Venue
impl Sync for Venue
impl Unpin for Venue
impl UnwindSafe for Venue
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.