pub struct InlineQueryResultVenue {
pub kind: String,
pub id: String,
pub latitude: f64,
pub longitude: f64,
pub title: String,
pub address: String,
pub foursquare_id: String,
pub reply_markup: Option<InlineKeyboardMarkup>,
pub input_message_content: Option<Box<dyn Serialize + Send>>,
pub thumb_url: Option<String>,
pub thumb_width: Option<Integer>,
pub thumb_height: Option<Integer>,
}Fields§
§kind: String§id: String§latitude: f64§longitude: f64§title: String§address: String§foursquare_id: String§reply_markup: Option<InlineKeyboardMarkup>§input_message_content: Option<Box<dyn Serialize + Send>>§thumb_url: Option<String>§thumb_width: Option<Integer>§thumb_height: Option<Integer>Implementations§
Source§impl InlineQueryResultVenue
impl InlineQueryResultVenue
pub fn new( _latitude: f64, _longitude: f64, _title: String, _address: String, _foursquare_id: String, ) -> InlineQueryResultVenue
pub fn reply_markup<S>(self, val: S) -> Selfwhere
S: Into<InlineKeyboardMarkup>,
pub fn input_message_content<S>(self, val: S) -> Self
pub fn thumb_url<S>(self, val: S) -> Self
pub fn thumb_width<S>(self, val: S) -> Self
pub fn thumb_height<S>(self, val: S) -> Self
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for InlineQueryResultVenue
impl !Sync for InlineQueryResultVenue
impl !UnwindSafe for InlineQueryResultVenue
impl Freeze for InlineQueryResultVenue
impl Send for InlineQueryResultVenue
impl Unpin for InlineQueryResultVenue
impl UnsafeUnpin 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> 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