[−][src]Struct teloxide::types::InlineQueryResultCachedAudio
Represents a link to an MP3 audio file stored on the Telegram servers.
By default, this audio file will be sent by the user. Alternatively, you can
use input_message_content
to send a message with the specified content
instead of the audio.
Fields (Non-exhaustive)
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.id: String
Unique identifier for this result, 1-64 bytes.
audio_file_id: String
A valid file identifier for the audio file.
Caption, 0-1024 characters.
parse_mode: Option<ParseMode>
Send Markdown or HTML, if you want Telegram apps to show bold, italic, fixed-width text or inline URLs in the media caption.
reply_markup: Option<InlineKeyboardMarkup>
Inline keyboard attached to the message.
input_message_content: Option<InputMessageContent>
Content of the message to be sent instead of the audio.
Implementations
impl InlineQueryResultCachedAudio
[src]
pub fn new<S1, S2>(id: S1, audio_file_id: S2) -> Self where
S1: Into<String>,
S2: Into<String>,
[src]
S1: Into<String>,
S2: Into<String>,
pub fn id<S>(self, val: S) -> Self where
S: Into<String>,
[src]
S: Into<String>,
pub fn audio_file_id<S>(self, val: S) -> Self where
S: Into<String>,
[src]
S: Into<String>,
pub fn caption<S>(self, val: S) -> Self where
S: Into<String>,
[src]
S: Into<String>,
pub fn parse_mode(self, val: ParseMode) -> Self
[src]
pub fn reply_markup(self, val: InlineKeyboardMarkup) -> Self
[src]
pub fn input_message_content(self, val: InputMessageContent) -> Self
[src]
Trait Implementations
impl Clone for InlineQueryResultCachedAudio
[src]
fn clone(&self) -> InlineQueryResultCachedAudio
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for InlineQueryResultCachedAudio
[src]
impl<'de> Deserialize<'de> for InlineQueryResultCachedAudio
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl From<InlineQueryResultCachedAudio> for InlineQueryResult
[src]
fn from(original: InlineQueryResultCachedAudio) -> InlineQueryResult
[src]
impl PartialEq<InlineQueryResultCachedAudio> for InlineQueryResultCachedAudio
[src]
fn eq(&self, other: &InlineQueryResultCachedAudio) -> bool
[src]
fn ne(&self, other: &InlineQueryResultCachedAudio) -> bool
[src]
impl Serialize for InlineQueryResultCachedAudio
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl StructuralPartialEq for InlineQueryResultCachedAudio
[src]
Auto Trait Implementations
impl RefUnwindSafe for InlineQueryResultCachedAudio
impl Send for InlineQueryResultCachedAudio
impl Sync for InlineQueryResultCachedAudio
impl Unpin for InlineQueryResultCachedAudio
impl UnwindSafe for InlineQueryResultCachedAudio
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,