#[non_exhaustive]pub struct ChannelPinsUpdate {
pub guild_id: Option<GuildId>,
pub channel_id: ChannelId,
pub last_pin_timestamp: Option<Timestamp>,
}Expand description
The data of the Channel Pins Update dispatch event (not sent when a pinned message is deleted).
discord.js counterpart: the ChannelPinsUpdate 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.guild_id: Option<GuildId>The guild.
channel_id: ChannelIdThe channel.
last_pin_timestamp: Option<Timestamp>When the most recent pin was made.
Trait Implementations§
Source§impl Clone for ChannelPinsUpdate
impl Clone for ChannelPinsUpdate
impl Copy for ChannelPinsUpdate
Source§impl Debug for ChannelPinsUpdate
impl Debug for ChannelPinsUpdate
Source§impl<'de> Deserialize<'de> for ChannelPinsUpdate
impl<'de> Deserialize<'de> for ChannelPinsUpdate
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 ChannelPinsUpdate
Source§impl PartialEq for ChannelPinsUpdate
impl PartialEq for ChannelPinsUpdate
Source§impl Serialize for ChannelPinsUpdate
impl Serialize for ChannelPinsUpdate
impl StructuralPartialEq for ChannelPinsUpdate
Auto Trait Implementations§
impl Freeze for ChannelPinsUpdate
impl RefUnwindSafe for ChannelPinsUpdate
impl Send for ChannelPinsUpdate
impl Sync for ChannelPinsUpdate
impl Unpin for ChannelPinsUpdate
impl UnsafeUnpin for ChannelPinsUpdate
impl UnwindSafe for ChannelPinsUpdate
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