#[non_exhaustive]pub struct PingInteraction {
pub id: InteractionId,
pub application_id: ApplicationId,
pub token: String,
pub version: u8,
}
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: InteractionId
Id of the interaction.
application_id: ApplicationId
Id of the application this interaction is for.
token: String
A continuation token for responding to the interaction.
version: u8
Always 1
.
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<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 PingInteraction
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