Struct telexide::api::types::SendChatAction
source · pub struct SendChatAction {
pub chat_id: IntegerOrString,
pub message_thread_id: Option<i64>,
pub action: ChatAction,
}
Expand description
struct for holding data needed to call
send_chat_action
For more information of what actions can be broadcasted, see the API docs
Fields§
§chat_id: IntegerOrString
Unique identifier for the target chat
message_thread_id: Option<i64>
Unique identifier for the target message thread; supergroups only
action: ChatAction
Type of action to broadcast.
Implementations§
source§impl SendChatAction
impl SendChatAction
pub fn new(chat_id: IntegerOrString, action: ChatAction) -> Self
pub fn set_message_thread_id(&mut self, message_thread_id: i64) -> &mut Self
Trait Implementations§
source§impl Clone for SendChatAction
impl Clone for SendChatAction
source§fn clone(&self) -> SendChatAction
fn clone(&self) -> SendChatAction
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 SendChatAction
impl Debug for SendChatAction
source§impl<'de> Deserialize<'de> for SendChatAction
impl<'de> Deserialize<'de> for SendChatAction
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 SendChatAction
impl PartialEq for SendChatAction
source§fn eq(&self, other: &SendChatAction) -> bool
fn eq(&self, other: &SendChatAction) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for SendChatAction
impl Serialize for SendChatAction
impl Eq for SendChatAction
impl StructuralEq for SendChatAction
impl StructuralPartialEq for SendChatAction
Auto Trait Implementations§
impl RefUnwindSafe for SendChatAction
impl Send for SendChatAction
impl Sync for SendChatAction
impl Unpin for SendChatAction
impl UnwindSafe for SendChatAction
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
source§impl<T> CloneDebuggableStorage for Twhere
T: DebuggableStorage + Clone,
impl<T> CloneDebuggableStorage for Twhere T: DebuggableStorage + Clone,
fn clone_storage(&self) -> Box<dyn CloneDebuggableStorage>
source§impl<T> CloneableStorage for Twhere
T: Any + Send + Sync + Clone,
impl<T> CloneableStorage for Twhere T: Any + Send + Sync + Clone,
fn clone_storage(&self) -> Box<dyn CloneableStorage>
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.