pub struct InputInlineQueryResultPhoto {
pub id: String,
pub title: String,
pub description: String,
pub thumbnail_url: String,
pub photo_url: String,
pub photo_width: i32,
pub photo_height: i32,
pub reply_markup: Option<ReplyMarkup>,
pub input_message_content: InputMessageContent,
}
Expand description
Represents link to a JPEG image
Fields§
§id: String
Unique identifier of the query result
title: String
Title of the result, if known
description: String
A short description of the result, if known
thumbnail_url: String
URL of the photo thumbnail, if it exists
photo_url: String
The URL of the JPEG photo (photo size must not exceed 5MB)
photo_width: i32
Width of the photo
photo_height: i32
Height of the photo
reply_markup: Option<ReplyMarkup>
The message reply markup; pass null if none. Must be of type replyMarkupInlineKeyboard or null
input_message_content: InputMessageContent
The content of the message to be sent. Must be one of the following types: inputMessageText, inputMessagePhoto, inputMessageInvoice, inputMessageLocation, inputMessageVenue or inputMessageContact
Trait Implementations§
Source§impl Clone for InputInlineQueryResultPhoto
impl Clone for InputInlineQueryResultPhoto
Source§fn clone(&self) -> InputInlineQueryResultPhoto
fn clone(&self) -> InputInlineQueryResultPhoto
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 InputInlineQueryResultPhoto
impl Debug for InputInlineQueryResultPhoto
Source§impl<'de> Deserialize<'de> for InputInlineQueryResultPhoto
impl<'de> Deserialize<'de> for InputInlineQueryResultPhoto
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
impl StructuralPartialEq for InputInlineQueryResultPhoto
Auto Trait Implementations§
impl Freeze for InputInlineQueryResultPhoto
impl RefUnwindSafe for InputInlineQueryResultPhoto
impl Send for InputInlineQueryResultPhoto
impl Sync for InputInlineQueryResultPhoto
impl Unpin for InputInlineQueryResultPhoto
impl UnwindSafe for InputInlineQueryResultPhoto
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