Struct frankenstein::api_params::SendAudioParams
source · pub struct SendAudioParams {Show 15 fields
pub business_connection_id: Option<String>,
pub chat_id: ChatId,
pub message_thread_id: Option<i32>,
pub audio: FileUpload,
pub caption: Option<String>,
pub parse_mode: Option<ParseMode>,
pub caption_entities: Option<Vec<MessageEntity>>,
pub duration: Option<u32>,
pub performer: Option<String>,
pub title: Option<String>,
pub thumbnail: Option<FileUpload>,
pub disable_notification: Option<bool>,
pub protect_content: Option<bool>,
pub reply_parameters: Option<ReplyParameters>,
pub reply_markup: Option<ReplyMarkup>,
}
Fields§
§business_connection_id: Option<String>
§chat_id: ChatId
§message_thread_id: Option<i32>
§audio: FileUpload
§parse_mode: Option<ParseMode>
§duration: Option<u32>
§performer: Option<String>
§title: Option<String>
§thumbnail: Option<FileUpload>
§disable_notification: Option<bool>
§protect_content: Option<bool>
§reply_parameters: Option<ReplyParameters>
§reply_markup: Option<ReplyMarkup>
Implementations§
source§impl SendAudioParams
impl SendAudioParams
sourcepub fn builder(
) -> SendAudioParamsBuilder<((), (), (), (), (), (), (), (), (), (), (), (), (), (), ())>
pub fn builder( ) -> SendAudioParamsBuilder<((), (), (), (), (), (), (), (), (), (), (), (), (), (), ())>
Create a builder for building SendAudioParams
.
On the builder, call .business_connection_id(...)
(optional), .chat_id(...)
, .message_thread_id(...)
(optional), .audio(...)
, .caption(...)
(optional), .parse_mode(...)
(optional), .caption_entities(...)
(optional), .duration(...)
(optional), .performer(...)
(optional), .title(...)
(optional), .thumbnail(...)
(optional), .disable_notification(...)
(optional), .protect_content(...)
(optional), .reply_parameters(...)
(optional), .reply_markup(...)
(optional) to set the values of the fields.
Finally, call .build()
to create the instance of SendAudioParams
.
Trait Implementations§
source§impl Clone for SendAudioParams
impl Clone for SendAudioParams
source§fn clone(&self) -> SendAudioParams
fn clone(&self) -> SendAudioParams
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 SendAudioParams
impl Debug for SendAudioParams
source§impl<'de> Deserialize<'de> for SendAudioParams
impl<'de> Deserialize<'de> for SendAudioParams
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 PartialEq for SendAudioParams
impl PartialEq for SendAudioParams
source§fn eq(&self, other: &SendAudioParams) -> bool
fn eq(&self, other: &SendAudioParams) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for SendAudioParams
impl Serialize for SendAudioParams
impl Eq for SendAudioParams
impl StructuralPartialEq for SendAudioParams
Auto Trait Implementations§
impl Freeze for SendAudioParams
impl RefUnwindSafe for SendAudioParams
impl Send for SendAudioParams
impl Sync for SendAudioParams
impl Unpin for SendAudioParams
impl UnwindSafe for SendAudioParams
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