pub enum CreateData {
Command {
command_id: CommandId,
options: Vec<OptionValue>,
target_id: Option<String>,
},
Component {
message_id: MessageId,
custom_id: String,
values: Vec<String>,
},
Modal {
modal_id: InteractionId,
custom_id: String,
components: Vec<SubmittedInput>,
},
}Expand description
interaction.create data, by type.
Variants§
Command
Types 2 and 4.
Fields
§
options: Vec<OptionValue>Values given (one focused for type 4).
Component
Type 3.
Fields
Modal
Type 5.
Fields
§
modal_id: InteractionIdThe interaction that opened the modal.
§
components: Vec<SubmittedInput>The inputs.
Trait Implementations§
Source§impl Clone for CreateData
impl Clone for CreateData
Source§fn clone(&self) -> CreateData
fn clone(&self) -> CreateData
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 CreateData
impl Debug for CreateData
Source§impl PartialEq for CreateData
impl PartialEq for CreateData
impl StructuralPartialEq for CreateData
Auto Trait Implementations§
impl Freeze for CreateData
impl RefUnwindSafe for CreateData
impl Send for CreateData
impl Sync for CreateData
impl Unpin for CreateData
impl UnsafeUnpin for CreateData
impl UnwindSafe for CreateData
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