pub struct CommandInteractionData {
pub id: Option<Snowflake>,
pub name: Option<String>,
pub kind: Option<u8>,
pub options: Vec<CommandInteractionOption>,
pub resolved: Option<Value>,
pub target_id: Option<Snowflake>,
}Expand description
Typed Discord API object for CommandInteractionData.
Fields§
§id: Option<Snowflake>§name: Option<String>§kind: Option<u8>§options: Vec<CommandInteractionOption>§resolved: Option<Value>§target_id: Option<Snowflake>Trait Implementations§
Source§impl Clone for CommandInteractionData
impl Clone for CommandInteractionData
Source§fn clone(&self) -> CommandInteractionData
fn clone(&self) -> CommandInteractionData
Returns a duplicate of the value. Read more
1.0.0 · 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 CommandInteractionData
impl Debug for CommandInteractionData
Source§impl Default for CommandInteractionData
impl Default for CommandInteractionData
Source§fn default() -> CommandInteractionData
fn default() -> CommandInteractionData
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CommandInteractionData
impl<'de> Deserialize<'de> for CommandInteractionData
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
Auto Trait Implementations§
impl Freeze for CommandInteractionData
impl RefUnwindSafe for CommandInteractionData
impl Send for CommandInteractionData
impl Sync for CommandInteractionData
impl Unpin for CommandInteractionData
impl UnsafeUnpin for CommandInteractionData
impl UnwindSafe for CommandInteractionData
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