#[non_exhaustive]pub struct GetChannelPins {
pub before: Option<Timestamp>,
pub limit: Option<u8>,
}Expand description
The query of Get Channel Pins
(GET /channels/{channel.id}/messages/pins). Pins are returned newest first; to get the
next page, pass the pinned_at of the last pin as before.
discord.js counterpart: MessageManager#fetchPins options.
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.before: Option<Timestamp>Pins made before this time.
limit: Option<u8>How many pins (1-50; Discord’s default is 50).
Trait Implementations§
Source§impl Clone for GetChannelPins
impl Clone for GetChannelPins
impl Copy for GetChannelPins
Source§impl Debug for GetChannelPins
impl Debug for GetChannelPins
Source§impl Default for GetChannelPins
impl Default for GetChannelPins
impl Eq for GetChannelPins
Source§impl Hash for GetChannelPins
impl Hash for GetChannelPins
Source§impl PartialEq for GetChannelPins
impl PartialEq for GetChannelPins
impl StructuralPartialEq for GetChannelPins
Auto Trait Implementations§
impl Forget for GetChannelPins
impl Freeze for GetChannelPins
impl Move for GetChannelPins
impl RefUnwindSafe for GetChannelPins
impl Send for GetChannelPins
impl Sync for GetChannelPins
impl Unpin for GetChannelPins
impl UnsafeUnpin for GetChannelPins
impl UnwindSafe for GetChannelPins
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