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: 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
sourceimpl Clone for InteractionResponse
impl Clone for InteractionResponse
sourcefn clone(&self) -> InteractionResponse
fn clone(&self) -> InteractionResponse
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for InteractionResponse
impl Debug for InteractionResponse
sourceimpl<'de> Deserialize<'de> for InteractionResponse
impl<'de> Deserialize<'de> for InteractionResponse
sourcefn 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
sourceimpl PartialEq<InteractionResponse> for InteractionResponse
impl PartialEq<InteractionResponse> for InteractionResponse
sourcefn eq(&self, other: &InteractionResponse) -> bool
fn eq(&self, other: &InteractionResponse) -> bool
sourceimpl Serialize for InteractionResponse
impl Serialize for InteractionResponse
impl StructuralPartialEq for InteractionResponse
Auto Trait Implementations
impl RefUnwindSafe for InteractionResponse
impl Send for InteractionResponse
impl Sync for InteractionResponse
impl Unpin for InteractionResponse
impl UnwindSafe for InteractionResponse
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more