#[non_exhaustive]pub struct GetGuildBans {
pub limit: Option<u16>,
pub before: Option<UserId>,
pub after: Option<UserId>,
}Expand description
The query of Get Guild Bans.
Bans are sorted by user ID; with both before and after, only before is used.
discord.js counterpart: RESTGetAPIGuildBansQuery (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.limit: Option<u16>The page size (max 1000, the default).
before: Option<UserId>Bans of users with a lower ID.
after: Option<UserId>Bans of users with a higher ID.
Trait Implementations§
Source§impl Clone for GetGuildBans
impl Clone for GetGuildBans
impl Copy for GetGuildBans
Source§impl Debug for GetGuildBans
impl Debug for GetGuildBans
Source§impl Default for GetGuildBans
impl Default for GetGuildBans
impl Eq for GetGuildBans
Source§impl Hash for GetGuildBans
impl Hash for GetGuildBans
Source§impl PartialEq for GetGuildBans
impl PartialEq for GetGuildBans
impl StructuralPartialEq for GetGuildBans
Auto Trait Implementations§
impl Forget for GetGuildBans
impl Freeze for GetGuildBans
impl Move for GetGuildBans
impl RefUnwindSafe for GetGuildBans
impl Send for GetGuildBans
impl Sync for GetGuildBans
impl Unpin for GetGuildBans
impl UnsafeUnpin for GetGuildBans
impl UnwindSafe for GetGuildBans
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