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