pub struct RolesUpdate {
pub member_id: MemberId,
pub add: Vec<RoleId>,
pub remove: Vec<RoleId>,
}Expand description
member.roles.update (§8.3).
Fields§
§member_id: MemberIdThe member.
add: Vec<RoleId>Roles to assign; never @everyone.
remove: Vec<RoleId>Roles to remove; never @everyone.
Trait Implementations§
Source§impl Body for RolesUpdate
impl Body for RolesUpdate
Source§impl Clone for RolesUpdate
impl Clone for RolesUpdate
Source§fn clone(&self) -> RolesUpdate
fn clone(&self) -> RolesUpdate
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 RolesUpdate
impl Debug for RolesUpdate
Source§impl<'de> Deserialize<'de> for RolesUpdate
impl<'de> Deserialize<'de> for RolesUpdate
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for RolesUpdate
Source§impl PartialEq for RolesUpdate
impl PartialEq for RolesUpdate
Source§impl Serialize for RolesUpdate
impl Serialize for RolesUpdate
impl StructuralPartialEq for RolesUpdate
Auto Trait Implementations§
impl Freeze for RolesUpdate
impl RefUnwindSafe for RolesUpdate
impl Send for RolesUpdate
impl Sync for RolesUpdate
impl Unpin for RolesUpdate
impl UnsafeUnpin for RolesUpdate
impl UnwindSafe for RolesUpdate
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