#[non_exhaustive]pub struct GetGuildPruneCount {
pub days: Option<u8>,
pub include_roles: Vec<RoleId>,
}Expand description
The query of Get Guild Prune Count.
By default members with roles are never pruned; members whose roles are all in
include_roles are.
discord.js counterpart: RESTGetAPIGuildPruneCountQuery (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).
include_roles: Vec<RoleId>Roles whose members may be pruned too (sent comma-separated).
Trait Implementations§
Source§impl Clone for GetGuildPruneCount
impl Clone for GetGuildPruneCount
Source§impl Debug for GetGuildPruneCount
impl Debug for GetGuildPruneCount
Source§impl Default for GetGuildPruneCount
impl Default for GetGuildPruneCount
impl Eq for GetGuildPruneCount
Source§impl Hash for GetGuildPruneCount
impl Hash for GetGuildPruneCount
Source§impl PartialEq for GetGuildPruneCount
impl PartialEq for GetGuildPruneCount
impl StructuralPartialEq for GetGuildPruneCount
Auto Trait Implementations§
impl Freeze for GetGuildPruneCount
impl RefUnwindSafe for GetGuildPruneCount
impl Send for GetGuildPruneCount
impl Sync for GetGuildPruneCount
impl Unpin for GetGuildPruneCount
impl UnsafeUnpin for GetGuildPruneCount
impl UnwindSafe for GetGuildPruneCount
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