pub struct CliContextData {
pub event: Inbound,
/* private fields */
}Expand description
Per-event context for the CLI platform.
event carries the full wire payload — media, stickers, reactions,
threads — for consumers that downcast via Context::platform.
Fields§
§event: InboundThe inbound event being dispatched.
Trait Implementations§
Source§impl ContextData for CliContextData
impl ContextData for CliContextData
fn channel_id(&self) -> &str
fn user_id(&self) -> &str
fn user_name(&self) -> &str
fn command_name(&self) -> Option<&str>
fn command_args(&self) -> Option<&str>
fn option(&self, _name: &str) -> Option<OptionValue>
fn message_content(&self) -> Option<&str>
fn as_any(&self) -> &dyn Any
Source§fn action_sender(&self) -> Option<AnyChatActionSender>
fn action_sender(&self) -> Option<AnyChatActionSender>
Create a chat action sender for the current channel Read more
Auto Trait Implementations§
impl Freeze for CliContextData
impl RefUnwindSafe for CliContextData
impl Send for CliContextData
impl Sync for CliContextData
impl Unpin for CliContextData
impl UnsafeUnpin for CliContextData
impl UnwindSafe for CliContextData
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