#[non_exhaustive]pub struct BeginGuildPrune {
pub days: Option<u8>,
pub compute_prune_count: Option<bool>,
pub include_roles: Vec<RoleId>,
}Expand description
The body of Begin Guild Prune.
The reason is the reason parameter of the method (the body field is deprecated).
discord.js counterpart: RESTPostAPIGuildPruneJSONBody (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.days: Option<u8>Days of inactivity (1-30; Discord’s default: 7).
compute_prune_count: Option<bool>Whether to return the number of pruned members (Discord’s default: yes; discouraged for large guilds).
include_roles: Vec<RoleId>Roles whose members may be pruned too.
Trait Implementations§
Source§impl Clone for BeginGuildPrune
impl Clone for BeginGuildPrune
Source§impl Debug for BeginGuildPrune
impl Debug for BeginGuildPrune
Source§impl Default for BeginGuildPrune
impl Default for BeginGuildPrune
impl Eq for BeginGuildPrune
Source§impl Hash for BeginGuildPrune
impl Hash for BeginGuildPrune
Source§impl PartialEq for BeginGuildPrune
impl PartialEq for BeginGuildPrune
Source§impl Serialize for BeginGuildPrune
impl Serialize for BeginGuildPrune
impl StructuralPartialEq for BeginGuildPrune
Auto Trait Implementations§
impl Forget for BeginGuildPrune
impl Freeze for BeginGuildPrune
impl Move for BeginGuildPrune
impl RefUnwindSafe for BeginGuildPrune
impl Send for BeginGuildPrune
impl Sync for BeginGuildPrune
impl Unpin for BeginGuildPrune
impl UnsafeUnpin for BeginGuildPrune
impl UnwindSafe for BeginGuildPrune
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