Struct frankenstein::objects::InlineQueryResultCachedVoice
source · [−]pub struct InlineQueryResultCachedVoice {
pub id: String,
pub voice_file_id: String,
pub title: String,
pub caption: Option<String>,
pub parse_mode: Option<ParseMode>,
pub caption_entities: Option<Vec<MessageEntity>>,
pub reply_markup: Option<InlineKeyboardMarkup>,
pub input_message_content: Option<InputMessageContent>,
}
Fields
id: String
voice_file_id: String
title: String
parse_mode: Option<ParseMode>
reply_markup: Option<InlineKeyboardMarkup>
input_message_content: Option<InputMessageContent>
Implementations
sourceimpl InlineQueryResultCachedVoice
impl InlineQueryResultCachedVoice
sourcepub fn builder(
) -> InlineQueryResultCachedVoiceBuilder<((), (), (), (), (), (), (), ())>
pub fn builder(
) -> InlineQueryResultCachedVoiceBuilder<((), (), (), (), (), (), (), ())>
Create a builder for building InlineQueryResultCachedVoice
.
On the builder, call .id(...)
, .voice_file_id(...)
, .title(...)
, .caption(...)
(optional), .parse_mode(...)
(optional), .caption_entities(...)
(optional), .reply_markup(...)
(optional), .input_message_content(...)
(optional) to set the values of the fields.
Finally, call .build()
to create the instance of InlineQueryResultCachedVoice
.
Trait Implementations
sourceimpl Clone for InlineQueryResultCachedVoice
impl Clone for InlineQueryResultCachedVoice
sourcefn clone(&self) -> InlineQueryResultCachedVoice
fn clone(&self) -> InlineQueryResultCachedVoice
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 InlineQueryResultCachedVoice
impl Debug for InlineQueryResultCachedVoice
sourceimpl<'de> Deserialize<'de> for InlineQueryResultCachedVoice
impl<'de> Deserialize<'de> for InlineQueryResultCachedVoice
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<InlineQueryResultCachedVoice> for InlineQueryResultCachedVoice
impl PartialEq<InlineQueryResultCachedVoice> for InlineQueryResultCachedVoice
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &InlineQueryResultCachedVoice) -> bool
fn ne(&self, other: &InlineQueryResultCachedVoice) -> bool
This method tests for !=
.
impl StructuralPartialEq for InlineQueryResultCachedVoice
Auto Trait Implementations
impl RefUnwindSafe for InlineQueryResultCachedVoice
impl Send for InlineQueryResultCachedVoice
impl Sync for InlineQueryResultCachedVoice
impl Unpin for InlineQueryResultCachedVoice
impl UnwindSafe for InlineQueryResultCachedVoice
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