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
sourceimpl SendChatAction
impl SendChatAction
pub fn new<C>(chat: C, action: ChatAction) -> Selfwhere
C: ToChatRef,
Trait Implementations
sourceimpl Clone for SendChatAction
impl Clone for SendChatAction
sourcefn clone(&self) -> SendChatAction
fn clone(&self) -> SendChatAction
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for SendChatAction
impl Debug for SendChatAction
sourceimpl PartialEq<SendChatAction> for SendChatAction
impl PartialEq<SendChatAction> for SendChatAction
sourcefn eq(&self, other: &SendChatAction) -> bool
fn eq(&self, other: &SendChatAction) -> bool
sourceimpl PartialOrd<SendChatAction> for SendChatAction
impl PartialOrd<SendChatAction> for SendChatAction
sourcefn partial_cmp(&self, other: &SendChatAction) -> Option<Ordering>
fn partial_cmp(&self, other: &SendChatAction) -> Option<Ordering>
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresourceimpl 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>
sourceimpl Serialize for SendChatAction
impl Serialize 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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more