pub struct ModalContext<T: Clone + Send + Sync> {
pub meta: Metadata,
pub application_id: Id<ApplicationMarker>,
pub services: Arc<T>,
pub client: Arc<Client>,
pub event: InteractionCreate,
pub data: ModalInteractionData,
}
Fields§
§meta: Metadata
§application_id: Id<ApplicationMarker>
§services: Arc<T>
§client: Arc<Client>
§event: InteractionCreate
§data: ModalInteractionData
Implementations§
Source§impl<T: Clone + Send + Sync> ModalContext<T>
impl<T: Clone + Send + Sync> ModalContext<T>
pub fn from_context( ctx: Context<T>, meta: Metadata, event: InteractionCreate, data: ModalInteractionData, ) -> Self
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for ModalContext<T>
impl<T> !RefUnwindSafe for ModalContext<T>
impl<T> Send for ModalContext<T>
impl<T> Sync for ModalContext<T>
impl<T> Unpin for ModalContext<T>
impl<T> !UnwindSafe for ModalContext<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