pub enum InteractionContext<T: Clone + Send + Sync> {
Command(CommandContext<T>),
ComponentInteraction(ComponentInteractionContext<T>),
Modal(ModalContext<T>),
}
Variants§
Command(CommandContext<T>)
ComponentInteraction(ComponentInteractionContext<T>)
Modal(ModalContext<T>)
Auto Trait Implementations§
impl<T> Freeze for InteractionContext<T>
impl<T> !RefUnwindSafe for InteractionContext<T>
impl<T> Send for InteractionContext<T>
impl<T> Sync for InteractionContext<T>
impl<T> Unpin for InteractionContext<T>
impl<T> !UnwindSafe for InteractionContext<T>
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