Struct twilight_model::http::interaction::InteractionResponse
source · pub struct InteractionResponse {
pub kind: InteractionResponseType,
pub data: Option<InteractionResponseData>,
}Expand description
Interaction response sent to Discord.
Fields§
§kind: InteractionResponseTypeType 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<InteractionResponse> for InteractionResponse
impl PartialEq<InteractionResponse> for InteractionResponse
source§fn eq(&self, other: &InteractionResponse) -> bool
fn eq(&self, other: &InteractionResponse) -> bool
This method tests for
self and other values to be equal, and is used
by ==.