pub struct Venue {
pub address: String,
pub location: Location,
pub title: 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
Represents a venue.
Fields§
§address: String
Address of the venue.
location: Location
Location of the venue.
title: String
Name of the venue.
foursquare_id: Option<String>
Foursquare identifier.
foursquare_type: Option<String>
Foursquare type.
Example: “arts_entertainment/default”, “arts_entertainment/aquarium” or “food/ice-cream”.
google_place_id: Option<String>
Google Places identifier.
google_place_type: Option<String>
Google Places type.
https://developers.google.com/places/web-service/supported_types
Implementations§
source§impl Venue
impl Venue
sourcepub fn new<A, B>(title: A, address: B, location: Location) -> Venue
pub fn new<A, B>(title: A, address: B, location: Location) -> Venue
Creates a new Venue
.
§Arguments
title
- Title of the venue.address
- Address of the venue.location
- Location of the venue.
sourcepub fn with_foursquare_id<T>(self, value: T) -> Venue
pub fn with_foursquare_id<T>(self, value: T) -> Venue
sourcepub fn with_foursquare_type<T>(self, value: T) -> Venue
pub fn with_foursquare_type<T>(self, value: T) -> Venue
Sets a new foursquare type.
§Arguments
value
- Foursquare type of the venue.
For example, “arts_entertainment/default”, “arts_entertainment/aquarium” or “food/ice-cream”.
sourcepub fn with_google_place_id<T>(self, value: T) -> Venue
pub fn with_google_place_id<T>(self, value: T) -> Venue
sourcepub fn with_google_place_type<T>(self, value: T) -> Venue
pub fn with_google_place_type<T>(self, value: T) -> Venue
Sets a new Google Places type.
§Arguments
value
- Google Places type of the venue.
https://developers.google.com/places/web-service/supported_types
Trait Implementations§
source§impl<'de> Deserialize<'de> for Venue
impl<'de> Deserialize<'de> for Venue
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<Venue, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<Venue, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl From<Venue> for ExternalReplyData
impl From<Venue> for ExternalReplyData
source§fn from(original: Venue) -> ExternalReplyData
fn from(original: Venue) -> ExternalReplyData
Converts to this type from the input type.
source§impl From<Venue> for InputMessageContent
impl From<Venue> for InputMessageContent
source§fn from(value: Venue) -> InputMessageContent
fn from(value: Venue) -> InputMessageContent
Converts to this type from the input type.
source§impl From<Venue> for InputMessageContentVenue
impl From<Venue> for InputMessageContentVenue
source§fn from(value: Venue) -> InputMessageContentVenue
fn from(value: Venue) -> InputMessageContentVenue
Converts to this type from the input type.
source§impl PartialEq for Venue
impl PartialEq for Venue
source§impl PartialOrd for Venue
impl PartialOrd for Venue
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 Venue
impl Serialize for Venue
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
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
Mutably borrows from an owned value. Read more
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more