pub struct MessageBody {
pub message: Message,
}Expand description
Extractor for message event.
Fields§
§message: MessageTrait Implementations§
Source§impl FromEvent for MessageBody
impl FromEvent for MessageBody
fn from_event<'async_trait>( __arg0: BotContext, event: BotEvent, ) -> Pin<Box<dyn Future<Output = Option<MessageBody>> + Send + 'async_trait>>
impl Send for MessageBody
impl Sync for MessageBody
Auto Trait Implementations§
impl Freeze for MessageBody
impl RefUnwindSafe for MessageBody
impl Unpin for MessageBody
impl UnwindSafe for MessageBody
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