pub struct InteractionModal {
pub interaction_id: InteractionId,
pub custom_id: String,
pub title: String,
pub components: Vec<Component>,
}Expand description
interaction.modal: open a modal, to the invoker only.
Fields§
§interaction_id: InteractionIdThe interaction that opened it; submit with it as modal_id.
custom_id: StringThe modal’s custom_id.
title: String1–45 scalars.
components: Vec<Component>1–5 labels or text displays.
Trait Implementations§
Source§impl Clone for InteractionModal
impl Clone for InteractionModal
Source§fn clone(&self) -> InteractionModal
fn clone(&self) -> InteractionModal
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for InteractionModal
impl Debug for InteractionModal
Source§impl<'de> Deserialize<'de> for InteractionModal
impl<'de> Deserialize<'de> for InteractionModal
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for InteractionModal
Source§impl PartialEq for InteractionModal
impl PartialEq for InteractionModal
Source§impl Serialize for InteractionModal
impl Serialize for InteractionModal
impl StructuralPartialEq for InteractionModal
Auto Trait Implementations§
impl Freeze for InteractionModal
impl RefUnwindSafe for InteractionModal
impl Send for InteractionModal
impl Sync for InteractionModal
impl Unpin for InteractionModal
impl UnsafeUnpin for InteractionModal
impl UnwindSafe for InteractionModal
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