Struct tgbot::types::InlineQueryResultCachedVoice
source · pub struct InlineQueryResultCachedVoice { /* private fields */ }
Expand description
Represents a link to a voice message stored on the Telegram servers.
By default, this voice message 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 voice message.
Implementations§
source§impl InlineQueryResultCachedVoice
impl InlineQueryResultCachedVoice
sourcepub fn new<A, B, C>(id: A, title: B, voice_file_id: C) -> Self
pub fn new<A, B, C>(id: A, title: B, voice_file_id: C) -> Self
Creates a new InlineQueryResultCachedVoice
.
§Arguments
id
- Unique identifier of the result; 1-64 bytes.title
- Title of the result.voice_file_id
- A valid file identifier of the voice message.
sourcepub fn with_reply_markup<T>(self, value: T) -> Selfwhere
T: Into<InlineKeyboardMarkup>,
pub fn with_reply_markup<T>(self, value: T) -> Selfwhere
T: Into<InlineKeyboardMarkup>,
sourcepub fn with_input_message_content<T>(self, value: T) -> Selfwhere
T: Into<InputMessageContent>,
pub fn with_input_message_content<T>(self, value: T) -> Selfwhere
T: Into<InputMessageContent>,
Sets a new input message content.
§Arguments
value
- Content of the message to be sent instead of the voice message.
Trait Implementations§
source§impl Clone for InlineQueryResultCachedVoice
impl Clone for InlineQueryResultCachedVoice
source§fn clone(&self) -> InlineQueryResultCachedVoice
fn clone(&self) -> InlineQueryResultCachedVoice
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 InlineQueryResultCachedVoice
impl Debug for InlineQueryResultCachedVoice
source§impl<'de> Deserialize<'de> for InlineQueryResultCachedVoice
impl<'de> Deserialize<'de> for InlineQueryResultCachedVoice
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 From<InlineQueryResultCachedVoice> for InlineQueryResult
impl From<InlineQueryResultCachedVoice> for InlineQueryResult
source§fn from(original: InlineQueryResultCachedVoice) -> InlineQueryResult
fn from(original: InlineQueryResultCachedVoice) -> InlineQueryResult
Converts to this type from the input type.
source§impl PartialEq for InlineQueryResultCachedVoice
impl PartialEq for InlineQueryResultCachedVoice
source§fn eq(&self, other: &InlineQueryResultCachedVoice) -> bool
fn eq(&self, other: &InlineQueryResultCachedVoice) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for InlineQueryResultCachedVoice
Auto Trait Implementations§
impl Freeze for InlineQueryResultCachedVoice
impl RefUnwindSafe for InlineQueryResultCachedVoice
impl Send for InlineQueryResultCachedVoice
impl Sync for InlineQueryResultCachedVoice
impl Unpin for InlineQueryResultCachedVoice
impl UnwindSafe for InlineQueryResultCachedVoice
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