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