Struct discord_flows::model::ping::PingInteraction
source · pub struct PingInteraction {
pub id: InteractionId,
pub application_id: ApplicationId,
pub kind: InteractionType,
pub token: String,
pub version: u8,
pub guild_locale: Option<String>,
}Expand description
A ping interaction, which can only be received through an endpoint url.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.id: InteractionIdId of the interaction.
application_id: ApplicationIdId of the application this interaction is for.
kind: InteractionTypeThe type of interaction.
token: StringA continuation token for responding to the interaction.
version: u8Always 1.
guild_locale: Option<String>The guild’s preferred locale.
Trait Implementations§
source§impl Clone for PingInteraction
impl Clone for PingInteraction
source§fn clone(&self) -> PingInteraction
fn clone(&self) -> PingInteraction
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 PingInteraction
impl Debug for PingInteraction
source§impl<'de> Deserialize<'de> for PingInteraction
impl<'de> Deserialize<'de> for PingInteraction
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<PingInteraction, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>( __deserializer: __D ) -> Result<PingInteraction, <__D as Deserializer<'de>>::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Serialize for PingInteraction
impl Serialize for PingInteraction
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where __S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl RefUnwindSafe for PingInteraction
impl Send for PingInteraction
impl Sync for PingInteraction
impl Unpin for PingInteraction
impl UnwindSafe for PingInteraction
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