[−][src]Struct tbot::contexts::Command
A wrapping context for commands.
Fields
command: String
The command which fired the handler.
Trait Implementations
impl AnyText for Command<Text>
[src]
impl AnyText for Command<EditedText>
[src]
impl Context for Command<Text>
[src]
impl Context for Command<EditedText>
[src]
impl<C> Deref for Command<C>
[src]
impl EditedMessage for Command<EditedText>
[src]
impl Forward for Command<Text>
[src]
impl Forwardable for Command<Text>
[src]
fn forward_to<'a>(
&'a self,
chat_id: impl ImplicitChatId<'a>
) -> ForwardMessage<'a>
[src]
&'a self,
chat_id: impl ImplicitChatId<'a>
) -> ForwardMessage<'a>
impl Forwardable for Command<EditedText>
[src]
fn forward_to<'a>(
&'a self,
chat_id: impl ImplicitChatId<'a>
) -> ForwardMessage<'a>
[src]
&'a self,
chat_id: impl ImplicitChatId<'a>
) -> ForwardMessage<'a>
impl MediaMessage for Command<Text>
[src]
#[must_use]fn reply_to(&self) -> Option<&Message>
[src]
#[must_use]fn author_signature(&self) -> Option<&str>
[src]
#[must_use]fn reply_markup(&self) -> Option<&Keyboard>
[src]
impl MediaMessage for Command<EditedText>
[src]
#[must_use]fn reply_to(&self) -> Option<&Message>
[src]
#[must_use]fn author_signature(&self) -> Option<&str>
[src]
#[must_use]fn reply_markup(&self) -> Option<&Keyboard>
[src]
impl Message for Command<Text>
[src]
#[must_use]fn message_id(&self) -> Id
[src]
#[must_use]fn from(&self) -> Option<&User>
[src]
#[must_use]fn date(&self) -> i64
[src]
#[must_use]fn chat(&self) -> &Chat
[src]
impl Message for Command<EditedText>
[src]
#[must_use]fn message_id(&self) -> Id
[src]
#[must_use]fn from(&self) -> Option<&User>
[src]
#[must_use]fn date(&self) -> i64
[src]
#[must_use]fn chat(&self) -> &Chat
[src]
impl Pinnable for Command<Text>
[src]
fn pin_this_message(&self) -> PinChatMessage
[src]
impl Pinnable for Command<EditedText>
[src]
fn pin_this_message(&self) -> PinChatMessage
[src]
impl Text for Command<Text>
[src]
impl Text for Command<EditedText>
[src]
Auto Trait Implementations
impl<C> RefUnwindSafe for Command<C> where
C: RefUnwindSafe,
C: RefUnwindSafe,
impl<C> Send for Command<C> where
C: Send,
C: Send,
impl<C> Sync for Command<C> where
C: Sync,
C: Sync,
impl<C> Unpin for Command<C> where
C: Unpin,
C: Unpin,
impl<C> UnwindSafe for Command<C> where
C: UnwindSafe,
C: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> WithSubscriber for T
[src]
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
[src]
S: Into<Dispatch>,