#[non_exhaustive]pub struct CreateGuildBan {
pub delete_message_seconds: Option<u32>,
}Expand description
The body of Create Guild Ban.
discord.js counterpart: RESTPutAPIGuildBanJSONBody (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.delete_message_seconds: Option<u32>How many seconds of the user’s recent messages to delete (0-604800, 7 days).
Trait Implementations§
Source§impl Clone for CreateGuildBan
impl Clone for CreateGuildBan
impl Copy for CreateGuildBan
Source§impl Debug for CreateGuildBan
impl Debug for CreateGuildBan
Source§impl Default for CreateGuildBan
impl Default for CreateGuildBan
impl Eq for CreateGuildBan
Source§impl Hash for CreateGuildBan
impl Hash for CreateGuildBan
Source§impl PartialEq for CreateGuildBan
impl PartialEq for CreateGuildBan
Source§impl Serialize for CreateGuildBan
impl Serialize for CreateGuildBan
impl StructuralPartialEq for CreateGuildBan
Auto Trait Implementations§
impl Forget for CreateGuildBan
impl Freeze for CreateGuildBan
impl Move for CreateGuildBan
impl RefUnwindSafe for CreateGuildBan
impl Send for CreateGuildBan
impl Sync for CreateGuildBan
impl Unpin for CreateGuildBan
impl UnsafeUnpin for CreateGuildBan
impl UnwindSafe for CreateGuildBan
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