pub struct SendChatAction { /* private fields */ }
Expand description
Use this method when you need to tell the user that something is happening on the bot’s side. The status is set for 5 seconds or less (when a message arrives from your bot, Telegram clients clear its typing status).
Implementations§
Source§impl SendChatAction
impl SendChatAction
pub fn new<C>(chat: C, action: ChatAction) -> SendChatActionwhere
C: ToChatRef,
Trait Implementations§
Source§impl Clone for SendChatAction
impl Clone for SendChatAction
Source§fn clone(&self) -> SendChatAction
fn clone(&self) -> SendChatAction
Returns a duplicate 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 PartialEq for SendChatAction
impl PartialEq for SendChatAction
Source§impl PartialOrd for SendChatAction
impl PartialOrd for SendChatAction
Source§impl Request for SendChatAction
impl Request for SendChatAction
type Type = JsonRequestType<SendChatAction>
type Response = JsonTrueToUnitResponse
fn serialize(&self) -> Result<HttpRequest, Error>
fn detach(&self) -> DetachedRequest<Self::Response>
Source§impl Serialize for SendChatAction
impl Serialize for SendChatAction
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for SendChatAction
Auto Trait Implementations§
impl Freeze for SendChatAction
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