Struct frankenstein::api_params::SendChatActionParams
source · pub struct SendChatActionParams {
pub business_connection_id: Option<String>,
pub chat_id: ChatId,
pub message_thread_id: Option<i32>,
pub action: ChatAction,
}
Fields§
§business_connection_id: Option<String>
§chat_id: ChatId
§message_thread_id: Option<i32>
§action: ChatAction
Implementations§
source§impl SendChatActionParams
impl SendChatActionParams
sourcepub fn builder() -> SendChatActionParamsBuilder<((), (), (), ())>
pub fn builder() -> SendChatActionParamsBuilder<((), (), (), ())>
Create a builder for building SendChatActionParams
.
On the builder, call .business_connection_id(...)
(optional), .chat_id(...)
, .message_thread_id(...)
(optional), .action(...)
to set the values of the fields.
Finally, call .build()
to create the instance of SendChatActionParams
.
Trait Implementations§
source§impl Clone for SendChatActionParams
impl Clone for SendChatActionParams
source§fn clone(&self) -> SendChatActionParams
fn clone(&self) -> SendChatActionParams
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 SendChatActionParams
impl Debug for SendChatActionParams
source§impl<'de> Deserialize<'de> for SendChatActionParams
impl<'de> Deserialize<'de> for SendChatActionParams
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 SendChatActionParams
impl PartialEq for SendChatActionParams
source§fn eq(&self, other: &SendChatActionParams) -> bool
fn eq(&self, other: &SendChatActionParams) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for SendChatActionParams
impl Serialize for SendChatActionParams
impl Eq for SendChatActionParams
impl StructuralPartialEq for SendChatActionParams
Auto Trait Implementations§
impl Freeze for SendChatActionParams
impl RefUnwindSafe for SendChatActionParams
impl Send for SendChatActionParams
impl Sync for SendChatActionParams
impl Unpin for SendChatActionParams
impl UnwindSafe for SendChatActionParams
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