Struct botapi::gen_types::VenueBuilder
source · pub struct VenueBuilder {
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 VenueBuilder
impl VenueBuilder
pub fn new<A: Into<Location>>( location: A, title: String, address: String, ) -> Self
sourcepub fn set_location(self, location: Location) -> Self
pub fn set_location(self, location: Location) -> Self
Venue location. Can’t be a live location
sourcepub fn set_address(self, address: String) -> Self
pub fn set_address(self, address: String) -> Self
Address of the venue
sourcepub fn set_foursquare_id(self, foursquare_id: String) -> Self
pub fn set_foursquare_id(self, foursquare_id: String) -> Self
Optional. Foursquare identifier of the venue
sourcepub fn set_foursquare_type(self, foursquare_type: String) -> Self
pub fn set_foursquare_type(self, foursquare_type: String) -> Self
Optional. Foursquare type of the venue. (For example, “arts_entertainment/default”, “arts_entertainment/aquarium” or “food/icecream”.)
sourcepub fn set_google_place_id(self, google_place_id: String) -> Self
pub fn set_google_place_id(self, google_place_id: String) -> Self
Optional. Google Places identifier of the venue
sourcepub fn set_google_place_type(self, google_place_type: String) -> Self
pub fn set_google_place_type(self, google_place_type: String) -> Self
Optional. Google Places type of the venue. (See supported types.)
pub fn build(self) -> Venue
Trait Implementations§
source§impl Clone for VenueBuilder
impl Clone for VenueBuilder
source§fn clone(&self) -> VenueBuilder
fn clone(&self) -> VenueBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for VenueBuilder
impl Debug for VenueBuilder
source§impl Default for VenueBuilder
impl Default for VenueBuilder
source§fn default() -> VenueBuilder
fn default() -> VenueBuilder
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for VenueBuilder
impl<'de> Deserialize<'de> for VenueBuilder
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>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Hash for VenueBuilder
impl Hash for VenueBuilder
source§impl Ord for VenueBuilder
impl Ord for VenueBuilder
source§fn cmp(&self, other: &VenueBuilder) -> Ordering
fn cmp(&self, other: &VenueBuilder) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for VenueBuilder
impl PartialEq for VenueBuilder
source§fn eq(&self, other: &VenueBuilder) -> bool
fn eq(&self, other: &VenueBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for VenueBuilder
impl PartialOrd for VenueBuilder
source§fn partial_cmp(&self, other: &VenueBuilder) -> Option<Ordering>
fn partial_cmp(&self, other: &VenueBuilder) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl Serialize for VenueBuilder
impl Serialize for VenueBuilder
impl Eq for VenueBuilder
impl StructuralPartialEq for VenueBuilder
Auto Trait Implementations§
impl Freeze for VenueBuilder
impl RefUnwindSafe for VenueBuilder
impl Send for VenueBuilder
impl Sync for VenueBuilder
impl Unpin for VenueBuilder
impl UnwindSafe for VenueBuilder
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
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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
Compare self to
key
and return true
if they are equal.