#[non_exhaustive]pub struct MessagePin {
pub pinned_at: Timestamp,
pub message: Message,
}Expand description
A pinned message
(GET /channels/{channel.id}/messages/pins).
discord.js counterpart: MessagePin.
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.pinned_at: TimestampWhen the message was pinned.
message: MessageThe pinned message.
Trait Implementations§
Source§impl Clone for MessagePin
impl Clone for MessagePin
Source§impl Debug for MessagePin
impl Debug for MessagePin
Source§impl<'de> Deserialize<'de> for MessagePin
impl<'de> Deserialize<'de> for MessagePin
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
Source§impl PartialEq for MessagePin
impl PartialEq for MessagePin
Source§impl Serialize for MessagePin
impl Serialize for MessagePin
impl StructuralPartialEq for MessagePin
Auto Trait Implementations§
impl Freeze for MessagePin
impl RefUnwindSafe for MessagePin
impl Send for MessagePin
impl Sync for MessagePin
impl Unpin for MessagePin
impl UnsafeUnpin for MessagePin
impl UnwindSafe for MessagePin
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