#[non_exhaustive]pub struct TypingStart {
pub channel_id: ChannelId,
pub guild_id: Option<GuildId>,
pub user_id: UserId,
pub timestamp: Timestamp,
pub member: Option<Box<Member>>,
}Expand description
The data of the Typing Start dispatch event.
discord.js counterpart: the TypingStart event.
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.channel_id: ChannelIdThe channel.
guild_id: Option<GuildId>The guild.
user_id: UserIdThe typing user.
timestamp: TimestampWhen the user started typing (sent as Unix seconds, D-075).
member: Option<Box<Member>>The typing member (guild channels).
Trait Implementations§
Source§impl Clone for TypingStart
impl Clone for TypingStart
Source§impl Debug for TypingStart
impl Debug for TypingStart
Source§impl<'de> Deserialize<'de> for TypingStart
impl<'de> Deserialize<'de> for TypingStart
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
impl Eq for TypingStart
Source§impl PartialEq for TypingStart
impl PartialEq for TypingStart
Source§impl Serialize for TypingStart
impl Serialize for TypingStart
impl StructuralPartialEq for TypingStart
Auto Trait Implementations§
impl Freeze for TypingStart
impl RefUnwindSafe for TypingStart
impl Send for TypingStart
impl Sync for TypingStart
impl Unpin for TypingStart
impl UnsafeUnpin for TypingStart
impl UnwindSafe for TypingStart
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