#[non_exhaustive]pub struct ChannelPins {
pub items: Vec<MessagePin>,
pub has_more: bool,
}Expand description
The response of Get Channel Pins.
discord.js counterpart: RESTGetAPIChannelMessagesPinsResult (discord-api-types).
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.items: Vec<MessagePin>The pins, newest first.
has_more: boolWhether there are older pins.
Trait Implementations§
Source§impl Clone for ChannelPins
impl Clone for ChannelPins
Source§impl Debug for ChannelPins
impl Debug for ChannelPins
Source§impl<'de> Deserialize<'de> for ChannelPins
impl<'de> Deserialize<'de> for ChannelPins
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 ChannelPins
impl PartialEq for ChannelPins
Source§impl Serialize for ChannelPins
impl Serialize for ChannelPins
impl StructuralPartialEq for ChannelPins
Auto Trait Implementations§
impl Freeze for ChannelPins
impl RefUnwindSafe for ChannelPins
impl Send for ChannelPins
impl Sync for ChannelPins
impl Unpin for ChannelPins
impl UnsafeUnpin for ChannelPins
impl UnwindSafe for ChannelPins
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