pub struct AdminConversationsRestrictAccess {
pub client: Client,
}Fields§
§client: ClientImplementations§
Source§impl AdminConversationsRestrictAccess
impl AdminConversationsRestrictAccess
Sourcepub async fn add_group(&self) -> Result<Response<DndEndSchema>, ClientError>
pub async fn add_group(&self) -> Result<Response<DndEndSchema>, ClientError>
This function performs a POST to the /admin.conversations.restrictAccess.addGroup endpoint.
Add an allowlist of IDP groups for accessing a channel
FROM: https://api.slack.com/methods/admin.conversations.restrictAccess.addGroup
Sourcepub async fn list_group(
&self,
channel_id: &str,
team_id: &str,
) -> Result<Response<DndEndSchema>, ClientError>
pub async fn list_group( &self, channel_id: &str, team_id: &str, ) -> Result<Response<DndEndSchema>, ClientError>
This function performs a GET to the /admin.conversations.restrictAccess.listGroups endpoint.
List all IDP Groups linked to a channel
FROM: https://api.slack.com/methods/admin.conversations.restrictAccess.listGroups
Parameters:
token: &str– Authentication token. Requires scope:admin.conversations:read.channel_id: &strteam_id: &str– The workspace where the channel exists. This argument is required for channels only tied to one workspace, and optional for channels that are shared across an organization.
Sourcepub async fn remove_group(&self) -> Result<Response<DndEndSchema>, ClientError>
pub async fn remove_group(&self) -> Result<Response<DndEndSchema>, ClientError>
This function performs a POST to the /admin.conversations.restrictAccess.removeGroup endpoint.
Remove a linked IDP group linked from a private channel
FROM: https://api.slack.com/methods/admin.conversations.restrictAccess.removeGroup
Auto Trait Implementations§
impl Freeze for AdminConversationsRestrictAccess
impl !RefUnwindSafe for AdminConversationsRestrictAccess
impl Send for AdminConversationsRestrictAccess
impl Sync for AdminConversationsRestrictAccess
impl Unpin for AdminConversationsRestrictAccess
impl !UnwindSafe for AdminConversationsRestrictAccess
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