Struct carapax::types::InlineQueryResultVenue
source · pub struct InlineQueryResultVenue { /* private fields */ }
Expand description
Represents a venue.
By default, the venue will be sent by the user.
Alternatively, you can use Self::with_input_message_content
to send a message with the specified content instead of the venue.
Implementations§
source§impl InlineQueryResultVenue
impl InlineQueryResultVenue
sourcepub fn new<A, B, C>(
address: A,
id: B,
latitude: f32,
longitude: f32,
title: C
) -> InlineQueryResultVenue
pub fn new<A, B, C>( address: A, id: B, latitude: f32, longitude: f32, title: C ) -> InlineQueryResultVenue
Creates a new InlineQueryResultVenue
.
§Arguments
address
- Address of the venue.id
- Unique identifier of the result; 1-64 bytes.latitude
- Latitude of the venue location in degrees.longitude
- Longitude of the venue location in degrees.title
- Title of the venue.
sourcepub fn with_foursquare_id<T>(self, value: T) -> InlineQueryResultVenue
pub fn with_foursquare_id<T>(self, value: T) -> InlineQueryResultVenue
sourcepub fn with_foursquare_type<T>(self, value: T) -> InlineQueryResultVenue
pub fn with_foursquare_type<T>(self, value: T) -> InlineQueryResultVenue
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) -> InlineQueryResultVenue
pub fn with_google_place_id<T>(self, value: T) -> InlineQueryResultVenue
sourcepub fn with_google_place_type<T>(self, value: T) -> InlineQueryResultVenue
pub fn with_google_place_type<T>(self, value: T) -> InlineQueryResultVenue
Sets a new Google Places type.
§Arguments
value
- Google Places type of the venue.
https://developers.google.com/places/web-service/supported_types
sourcepub fn with_input_message_content<T>(self, value: T) -> InlineQueryResultVenuewhere
T: Into<InputMessageContent>,
pub fn with_input_message_content<T>(self, value: T) -> InlineQueryResultVenuewhere
T: Into<InputMessageContent>,
Sets a new input message content.
§Arguments
value
- Content of the message to be sent instead of the venue.
sourcepub fn with_reply_markup<T>(self, value: T) -> InlineQueryResultVenuewhere
T: Into<InlineKeyboardMarkup>,
pub fn with_reply_markup<T>(self, value: T) -> InlineQueryResultVenuewhere
T: Into<InlineKeyboardMarkup>,
sourcepub fn with_thumbnail_height(self, value: i64) -> InlineQueryResultVenue
pub fn with_thumbnail_height(self, value: i64) -> InlineQueryResultVenue
sourcepub fn with_thumbnail_url<T>(self, value: T) -> InlineQueryResultVenue
pub fn with_thumbnail_url<T>(self, value: T) -> InlineQueryResultVenue
sourcepub fn with_thumbnail_width(self, value: i64) -> InlineQueryResultVenue
pub fn with_thumbnail_width(self, value: i64) -> InlineQueryResultVenue
Trait Implementations§
source§impl Clone for InlineQueryResultVenue
impl Clone for InlineQueryResultVenue
source§fn clone(&self) -> InlineQueryResultVenue
fn clone(&self) -> InlineQueryResultVenue
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 InlineQueryResultVenue
impl Debug for InlineQueryResultVenue
source§impl<'de> Deserialize<'de> for InlineQueryResultVenue
impl<'de> Deserialize<'de> for InlineQueryResultVenue
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<InlineQueryResultVenue, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<InlineQueryResultVenue, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl From<InlineQueryResultVenue> for InlineQueryResult
impl From<InlineQueryResultVenue> for InlineQueryResult
source§fn from(original: InlineQueryResultVenue) -> InlineQueryResult
fn from(original: InlineQueryResultVenue) -> InlineQueryResult
Converts to this type from the input type.
source§impl PartialEq for InlineQueryResultVenue
impl PartialEq for InlineQueryResultVenue
source§fn eq(&self, other: &InlineQueryResultVenue) -> bool
fn eq(&self, other: &InlineQueryResultVenue) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for InlineQueryResultVenue
impl Serialize for InlineQueryResultVenue
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
source§impl TryFrom<RawInlineQueryResult> for InlineQueryResultVenue
impl TryFrom<RawInlineQueryResult> for InlineQueryResultVenue
source§fn try_from(
value: RawInlineQueryResult
) -> Result<InlineQueryResultVenue, <InlineQueryResultVenue as TryFrom<RawInlineQueryResult>>::Error>
fn try_from( value: RawInlineQueryResult ) -> Result<InlineQueryResultVenue, <InlineQueryResultVenue as TryFrom<RawInlineQueryResult>>::Error>
Performs the conversion.
impl StructuralPartialEq for InlineQueryResultVenue
Auto Trait Implementations§
impl Freeze for InlineQueryResultVenue
impl RefUnwindSafe for InlineQueryResultVenue
impl Send for InlineQueryResultVenue
impl Sync for InlineQueryResultVenue
impl Unpin for InlineQueryResultVenue
impl UnwindSafe for InlineQueryResultVenue
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