pub struct InteractionResponse {
pub kind: InteractionResponseType,
pub data: Option<InteractionResponseData>,
}
Expand description
Interaction response sent to Discord.
Fields§
§kind: InteractionResponseType
Type of the response.
data: Option<InteractionResponseData>
Data of the response.
This is required if the type is any of the following:
Trait Implementations§
source§impl Clone for InteractionResponse
impl Clone for InteractionResponse
source§fn clone(&self) -> InteractionResponse
fn clone(&self) -> InteractionResponse
Returns a copy 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 InteractionResponse
impl Debug for InteractionResponse
source§impl<'de> Deserialize<'de> for InteractionResponse
impl<'de> Deserialize<'de> for InteractionResponse
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
source§impl PartialEq for InteractionResponse
impl PartialEq for InteractionResponse
source§impl Serialize for InteractionResponse
impl Serialize for InteractionResponse
impl StructuralPartialEq for InteractionResponse
Auto Trait Implementations§
impl Freeze for InteractionResponse
impl RefUnwindSafe for InteractionResponse
impl Send for InteractionResponse
impl Sync for InteractionResponse
impl Unpin for InteractionResponse
impl UnwindSafe for InteractionResponse
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)