pub struct EditMemberPayload {
pub nick: Option<Option<String>>,
pub roles: Option<Vec<Snowflake>>,
pub mute: Option<bool>,
pub deaf: Option<bool>,
pub channel_id: Option<Option<Snowflake>>,
pub communication_disabled_until: Option<Option<String>>,
}Expand description
For nullable fields like nick, use Some(None) to clear them.
Fields§
§nick: Option<Option<String>>§roles: Option<Vec<Snowflake>>§mute: Option<bool>§deaf: Option<bool>§channel_id: Option<Option<Snowflake>>§communication_disabled_until: Option<Option<String>>Trait Implementations§
Source§impl Clone for EditMemberPayload
impl Clone for EditMemberPayload
Source§fn clone(&self) -> EditMemberPayload
fn clone(&self) -> EditMemberPayload
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 EditMemberPayload
impl Debug for EditMemberPayload
Source§impl Default for EditMemberPayload
impl Default for EditMemberPayload
Source§fn default() -> EditMemberPayload
fn default() -> EditMemberPayload
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for EditMemberPayload
impl RefUnwindSafe for EditMemberPayload
impl Send for EditMemberPayload
impl Sync for EditMemberPayload
impl Unpin for EditMemberPayload
impl UnsafeUnpin for EditMemberPayload
impl UnwindSafe for EditMemberPayload
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