pub struct UsergroupsUsers {
pub client: Client,
}Fields§
§client: ClientImplementations§
Source§impl UsergroupsUsers
impl UsergroupsUsers
Sourcepub async fn list(
&self,
include_disabled: bool,
usergroup: &str,
) -> Result<Response<UsergroupsUsersListSchema>, ClientError>
pub async fn list( &self, include_disabled: bool, usergroup: &str, ) -> Result<Response<UsergroupsUsersListSchema>, ClientError>
This function performs a GET to the /usergroups.users.list endpoint.
List all users in a User Group
FROM: https://api.slack.com/methods/usergroups.users.list
Parameters:
token: &str– Authentication token. Requires scope:usergroups:read.include_disabled: bool– Allow results that involve disabled User Groups.usergroup: &str– The encoded ID of the User Group to update.
Sourcepub async fn update(
&self,
) -> Result<Response<UsergroupsCreateSchema>, ClientError>
pub async fn update( &self, ) -> Result<Response<UsergroupsCreateSchema>, ClientError>
This function performs a POST to the /usergroups.users.update endpoint.
Update the list of users for a User Group
FROM: https://api.slack.com/methods/usergroups.users.update
Parameters:
token: &str– Authentication token. Requires scope:usergroups:write.
Auto Trait Implementations§
impl Freeze for UsergroupsUsers
impl !RefUnwindSafe for UsergroupsUsers
impl Send for UsergroupsUsers
impl Sync for UsergroupsUsers
impl Unpin for UsergroupsUsers
impl UnsafeUnpin for UsergroupsUsers
impl !UnwindSafe for UsergroupsUsers
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