#[non_exhaustive]pub struct UpdateMemberRoleInput<'a> {
pub id: &'a Id,
pub role: ChatMemberRole,
}Expand description
One entry in the updateMemberRoles patch key for Chat/set update.
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.id: &'a IdChatContact.id of the member to update.
role: ChatMemberRoleNew role for this member.
Implementations§
Source§impl<'a> UpdateMemberRoleInput<'a>
impl<'a> UpdateMemberRoleInput<'a>
Sourcepub fn new(id: &'a Id, role: ChatMemberRole) -> Self
pub fn new(id: &'a Id, role: ChatMemberRole) -> Self
Create an UpdateMemberRoleInput with the target member and their new role.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for UpdateMemberRoleInput<'a>
impl<'a> RefUnwindSafe for UpdateMemberRoleInput<'a>
impl<'a> Send for UpdateMemberRoleInput<'a>
impl<'a> Sync for UpdateMemberRoleInput<'a>
impl<'a> Unpin for UpdateMemberRoleInput<'a>
impl<'a> UnsafeUnpin for UpdateMemberRoleInput<'a>
impl<'a> UnwindSafe for UpdateMemberRoleInput<'a>
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