pub struct InputInlineQueryResultVoiceNote {
pub id: String,
pub title: String,
pub voice_note_url: String,
pub voice_note_duration: i32,
pub reply_markup: Option<ReplyMarkup>,
pub input_message_content: InputMessageContent,
}
Expand description
Represents a link to an opus-encoded audio file within an OGG container, single channel audio
Fields§
§id: String
Unique identifier of the query result
title: String
Title of the voice note
voice_note_url: String
The URL of the voice note file
voice_note_duration: i32
Duration of the voice note, in seconds
reply_markup: Option<ReplyMarkup>
The message reply markup. 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, InputMessageVoiceNote, InputMessageLocation, InputMessageVenue or InputMessageContact
Trait Implementations§
Source§impl Clone for InputInlineQueryResultVoiceNote
impl Clone for InputInlineQueryResultVoiceNote
Source§fn clone(&self) -> InputInlineQueryResultVoiceNote
fn clone(&self) -> InputInlineQueryResultVoiceNote
Returns a duplicate 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<'de> Deserialize<'de> for InputInlineQueryResultVoiceNote
impl<'de> Deserialize<'de> for InputInlineQueryResultVoiceNote
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
Auto Trait Implementations§
impl Freeze for InputInlineQueryResultVoiceNote
impl RefUnwindSafe for InputInlineQueryResultVoiceNote
impl Send for InputInlineQueryResultVoiceNote
impl Sync for InputInlineQueryResultVoiceNote
impl Unpin for InputInlineQueryResultVoiceNote
impl UnwindSafe for InputInlineQueryResultVoiceNote
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