Struct frankenstein::objects::InlineQueryResultAudio
source · [−]pub struct InlineQueryResultAudio {
pub id: String,
pub audio_url: String,
pub title: String,
pub caption: Option<String>,
pub parse_mode: Option<ParseMode>,
pub caption_entities: Option<Vec<MessageEntity>>,
pub performer: Option<String>,
pub audio_duration: Option<u32>,
pub reply_markup: Option<InlineKeyboardMarkup>,
pub input_message_content: Option<InputMessageContent>,
}
Fields
id: String
audio_url: String
title: String
caption: Option<String>
parse_mode: Option<ParseMode>
caption_entities: Option<Vec<MessageEntity>>
performer: Option<String>
audio_duration: Option<u32>
reply_markup: Option<InlineKeyboardMarkup>
input_message_content: Option<InputMessageContent>
Implementations
sourceimpl InlineQueryResultAudio
impl InlineQueryResultAudio
sourcepub fn builder(
) -> InlineQueryResultAudioBuilder<((), (), (), (), (), (), (), (), (), ())>
pub fn builder(
) -> InlineQueryResultAudioBuilder<((), (), (), (), (), (), (), (), (), ())>
Create a builder for building InlineQueryResultAudio
.
On the builder, call .id(...)
, .audio_url(...)
, .title(...)
, .caption(...)
(optional), .parse_mode(...)
(optional), .caption_entities(...)
(optional), .performer(...)
(optional), .audio_duration(...)
(optional), .reply_markup(...)
(optional), .input_message_content(...)
(optional) to set the values of the fields.
Finally, call .build()
to create the instance of InlineQueryResultAudio
.
Trait Implementations
sourceimpl Clone for InlineQueryResultAudio
impl Clone for InlineQueryResultAudio
sourcefn clone(&self) -> InlineQueryResultAudio
fn clone(&self) -> InlineQueryResultAudio
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for InlineQueryResultAudio
impl Debug for InlineQueryResultAudio
sourceimpl<'de> Deserialize<'de> for InlineQueryResultAudio
impl<'de> Deserialize<'de> for InlineQueryResultAudio
sourcefn 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
sourceimpl PartialEq<InlineQueryResultAudio> for InlineQueryResultAudio
impl PartialEq<InlineQueryResultAudio> for InlineQueryResultAudio
sourcefn eq(&self, other: &InlineQueryResultAudio) -> bool
fn eq(&self, other: &InlineQueryResultAudio) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &InlineQueryResultAudio) -> bool
fn ne(&self, other: &InlineQueryResultAudio) -> bool
This method tests for !=
.
sourceimpl Serialize for InlineQueryResultAudio
impl Serialize for InlineQueryResultAudio
impl StructuralPartialEq for InlineQueryResultAudio
Auto Trait Implementations
impl RefUnwindSafe for InlineQueryResultAudio
impl Send for InlineQueryResultAudio
impl Sync for InlineQueryResultAudio
impl Unpin for InlineQueryResultAudio
impl UnwindSafe for InlineQueryResultAudio
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more