pub struct BanGuildMemberBody {
pub delete_message_days: Option<u8>,
pub reason: Option<String>,
pub ban_duration: Option<Duration<Seconds>>,
}Fields§
§delete_message_days: Option<u8>0-7.
reason: Option<String>§ban_duration: Option<Duration<Seconds>>0 means permanent.
Implementations§
Source§impl BanGuildMemberBody
impl BanGuildMemberBody
Sourcepub fn builder() -> BanGuildMemberBodyBuilder
pub fn builder() -> BanGuildMemberBodyBuilder
Create an instance of BanGuildMemberBody using the builder syntax
Trait Implementations§
Source§impl Clone for BanGuildMemberBody
impl Clone for BanGuildMemberBody
Source§fn clone(&self) -> BanGuildMemberBody
fn clone(&self) -> BanGuildMemberBody
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BanGuildMemberBody
impl Debug for BanGuildMemberBody
Auto Trait Implementations§
impl Freeze for BanGuildMemberBody
impl RefUnwindSafe for BanGuildMemberBody
impl Send for BanGuildMemberBody
impl Sync for BanGuildMemberBody
impl Unpin for BanGuildMemberBody
impl UnsafeUnpin for BanGuildMemberBody
impl UnwindSafe for BanGuildMemberBody
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