pub struct ModalOpen {
pub channel: Option<Channel>,
pub interaction: InteractionId,
pub custom_id: String,
pub title: String,
pub components: Vec<Component>,
}Expand description
A bot asks this member to fill in a modal; submit it with
Channel::submit_modal and interaction as the modal id.
Fields§
§channel: Option<Channel>Where the interaction happened.
interaction: InteractionIdThe interaction that opened it.
custom_id: StringThe modal’s custom_id.
title: StringIts title.
components: Vec<Component>Labels and text displays.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ModalOpen
impl RefUnwindSafe for ModalOpen
impl Send for ModalOpen
impl Sync for ModalOpen
impl Unpin for ModalOpen
impl UnsafeUnpin for ModalOpen
impl UnwindSafe for ModalOpen
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