#[non_exhaustive]pub struct GetCurrentUserGuilds {
pub before: Option<GuildId>,
pub after: Option<GuildId>,
pub limit: Option<u8>,
pub shard: Option<u16>,
pub with_counts: Option<bool>,
}Expand description
The query of Get Current User Guilds.
discord.js counterpart: RESTGetAPICurrentUserGuildsQuery (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.before: Option<GuildId>Guilds with a lower ID.
after: Option<GuildId>Guilds with a higher ID.
limit: Option<u8>The page size (1-200, the default).
shard: Option<u16>Only the guilds of this bucket (0 to max_concurrency - 1); required for bots
with large bot sharding.
with_counts: Option<bool>Whether to include the approximate member and presence counts.
Trait Implementations§
Source§impl Clone for GetCurrentUserGuilds
impl Clone for GetCurrentUserGuilds
impl Copy for GetCurrentUserGuilds
Source§impl Debug for GetCurrentUserGuilds
impl Debug for GetCurrentUserGuilds
Source§impl Default for GetCurrentUserGuilds
impl Default for GetCurrentUserGuilds
impl Eq for GetCurrentUserGuilds
Source§impl Hash for GetCurrentUserGuilds
impl Hash for GetCurrentUserGuilds
Source§impl PartialEq for GetCurrentUserGuilds
impl PartialEq for GetCurrentUserGuilds
impl StructuralPartialEq for GetCurrentUserGuilds
Auto Trait Implementations§
impl Forget for GetCurrentUserGuilds
impl Freeze for GetCurrentUserGuilds
impl Move for GetCurrentUserGuilds
impl RefUnwindSafe for GetCurrentUserGuilds
impl Send for GetCurrentUserGuilds
impl Sync for GetCurrentUserGuilds
impl Unpin for GetCurrentUserGuilds
impl UnsafeUnpin for GetCurrentUserGuilds
impl UnwindSafe for GetCurrentUserGuilds
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