#[non_exhaustive]pub struct GetInvite {
pub with_counts: Option<bool>,
pub guild_scheduled_event_id: Option<ScheduledEventId>,
}Expand description
The query of Get Invite.
discord.js counterpart: RESTGetAPIInviteQuery (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.with_counts: Option<bool>Whether to include the approximate member and presence counts.
guild_scheduled_event_id: Option<ScheduledEventId>A scheduled event of the guild to include with the invite.
Trait Implementations§
impl Copy for GetInvite
impl Eq for GetInvite
impl StructuralPartialEq for GetInvite
Auto Trait Implementations§
impl Freeze for GetInvite
impl RefUnwindSafe for GetInvite
impl Send for GetInvite
impl Sync for GetInvite
impl Unpin for GetInvite
impl UnsafeUnpin for GetInvite
impl UnwindSafe for GetInvite
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