Struct tdlib_rs::types::InputInlineQueryResultAudio
source · pub struct InputInlineQueryResultAudio {
pub id: String,
pub title: String,
pub performer: String,
pub audio_url: String,
pub audio_duration: i32,
pub reply_markup: Option<ReplyMarkup>,
pub input_message_content: InputMessageContent,
}
Expand description
Represents a link to an MP3 audio file
Fields§
§id: String
Unique identifier of the query result
title: String
Title of the audio file
performer: String
Performer of the audio file
audio_url: String
The URL of the audio file
audio_duration: i32
Audio file duration, in seconds
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, inputMessageAudio, inputMessageInvoice, inputMessageLocation, inputMessageVenue or inputMessageContact
Trait Implementations§
source§impl Clone for InputInlineQueryResultAudio
impl Clone for InputInlineQueryResultAudio
source§fn clone(&self) -> InputInlineQueryResultAudio
fn clone(&self) -> InputInlineQueryResultAudio
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 InputInlineQueryResultAudio
impl Debug for InputInlineQueryResultAudio
source§impl<'de> Deserialize<'de> for InputInlineQueryResultAudio
impl<'de> Deserialize<'de> for InputInlineQueryResultAudio
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 PartialEq for InputInlineQueryResultAudio
impl PartialEq for InputInlineQueryResultAudio
source§fn eq(&self, other: &InputInlineQueryResultAudio) -> bool
fn eq(&self, other: &InputInlineQueryResultAudio) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for InputInlineQueryResultAudio
Auto Trait Implementations§
impl Freeze for InputInlineQueryResultAudio
impl RefUnwindSafe for InputInlineQueryResultAudio
impl Send for InputInlineQueryResultAudio
impl Sync for InputInlineQueryResultAudio
impl Unpin for InputInlineQueryResultAudio
impl UnwindSafe for InputInlineQueryResultAudio
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