pub struct ApiMembersRole {
pub group_id: i64,
pub group_member_ids: Vec<i64>,
pub member_role: GroupMemberRole,
}Expand description
§Group commands
Commands to manage and moderate groups. These commands can be used with business chats as well - they are groups. E.g., a common scenario would be to add human agents to business chat with the customer who connected via business address.
Set members role. Requires Admin role.
Network usage: background.
Syntax:
/_member role #<groupId> <groupMemberIds[0]>[,<groupMemberIds[1]>...] observer|author|member|moderator|admin|ownerFields§
§group_id: i64§group_member_ids: Vec<i64>§member_role: GroupMemberRoleTrait Implementations§
Source§impl Clone for ApiMembersRole
impl Clone for ApiMembersRole
Source§fn clone(&self) -> ApiMembersRole
fn clone(&self) -> ApiMembersRole
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 CommandSyntax for ApiMembersRole
impl CommandSyntax for ApiMembersRole
Source§impl Debug for ApiMembersRole
impl Debug for ApiMembersRole
Source§impl PartialEq for ApiMembersRole
impl PartialEq for ApiMembersRole
impl StructuralPartialEq for ApiMembersRole
Auto Trait Implementations§
impl Freeze for ApiMembersRole
impl RefUnwindSafe for ApiMembersRole
impl Send for ApiMembersRole
impl Sync for ApiMembersRole
impl Unpin for ApiMembersRole
impl UnwindSafe for ApiMembersRole
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