pub struct AdminConversations {
pub client: Client,
}Fields
client: ClientImplementations
sourceimpl AdminConversations
impl AdminConversations
sourcepub async fn archive(&self) -> Result<DndEndSchema>
pub async fn archive(&self) -> Result<DndEndSchema>
This function performs a POST to the /admin.conversations.archive endpoint.
Archive a public or private channel.
FROM: https://api.slack.com/methods/admin.conversations.archive
Parameters:
token: &str– Authentication token. Requires scope:admin.conversations:write.
sourcepub async fn convert_private(&self) -> Result<DndEndSchema>
pub async fn convert_private(&self) -> Result<DndEndSchema>
This function performs a POST to the /admin.conversations.convertToPrivate endpoint.
Convert a public channel to a private channel.
FROM: https://api.slack.com/methods/admin.conversations.convertToPrivate
Parameters:
token: &str– Authentication token. Requires scope:admin.conversations:write.
sourcepub async fn create(&self) -> Result<AdminConversationsCreateSchema>
pub async fn create(&self) -> Result<AdminConversationsCreateSchema>
This function performs a POST to the /admin.conversations.create endpoint.
Create a public or private channel-based conversation.
FROM: https://api.slack.com/methods/admin.conversations.create
Parameters:
token: &str– Authentication token. Requires scope:admin.conversations:write.
sourcepub async fn delete(&self) -> Result<DndEndSchema>
pub async fn delete(&self) -> Result<DndEndSchema>
This function performs a POST to the /admin.conversations.delete endpoint.
Delete a public or private channel.
FROM: https://api.slack.com/methods/admin.conversations.delete
Parameters:
token: &str– Authentication token. Requires scope:admin.conversations:write.
This function performs a POST to the /admin.conversations.disconnectShared endpoint.
Disconnect a connected channel from one or more workspaces.
FROM: https://api.slack.com/methods/admin.conversations.disconnectShared
Parameters:
token: &str– Authentication token. Requires scope:admin.conversations:write.
sourcepub async fn get_conversation_pref(
&self,
channel_id: &str
) -> Result<AdminConversationsGetConversationPrefsSchemaData>
pub async fn get_conversation_pref(
&self,
channel_id: &str
) -> Result<AdminConversationsGetConversationPrefsSchemaData>
This function performs a GET to the /admin.conversations.getConversationPrefs endpoint.
Get conversation preferences for a public or private channel.
FROM: https://api.slack.com/methods/admin.conversations.getConversationPrefs
Parameters:
token: &str– Authentication token. Requires scope:admin.conversations:read.channel_id: &str– The channel to get preferences for.
sourcepub async fn get_team(
&self,
channel_id: &str,
cursor: &str,
limit: i64
) -> Result<AdminConversationsGetTeamsSchema>
pub async fn get_team(
&self,
channel_id: &str,
cursor: &str,
limit: i64
) -> Result<AdminConversationsGetTeamsSchema>
This function performs a GET to the /admin.conversations.getTeams endpoint.
Get all the workspaces a given public or private channel is connected to within this Enterprise org.
FROM: https://api.slack.com/methods/admin.conversations.getTeams
Parameters:
token: &str– Authentication token. Requires scope:admin.conversations:read.channel_id: &str– The channel to determine connected workspaces within the organization for.cursor: &str– Setcursortonext_cursorreturned by the previous call to list items in the next page.limit: i64– The maximum number of items to return. Must be between 1 - 1000 both inclusive.
sourcepub async fn invite(&self) -> Result<DndEndSchema>
pub async fn invite(&self) -> Result<DndEndSchema>
This function performs a POST to the /admin.conversations.invite endpoint.
Invite a user to a public or private channel.
FROM: https://api.slack.com/methods/admin.conversations.invite
Parameters:
token: &str– Authentication token. Requires scope:admin.conversations:write.
sourcepub async fn rename(&self) -> Result<DndEndSchema>
pub async fn rename(&self) -> Result<DndEndSchema>
This function performs a POST to the /admin.conversations.rename endpoint.
Rename a public or private channel.
FROM: https://api.slack.com/methods/admin.conversations.rename
Parameters:
token: &str– Authentication token. Requires scope:admin.conversations:write.
sourcepub async fn search(
&self,
team_ids: &str,
query: &str,
limit: i64,
cursor: &str,
search_channel_types: &str,
sort: &str,
sort_dir: &str
) -> Result<AdminConversationsSearchSchema>
pub async fn search(
&self,
team_ids: &str,
query: &str,
limit: i64,
cursor: &str,
search_channel_types: &str,
sort: &str,
sort_dir: &str
) -> Result<AdminConversationsSearchSchema>
This function performs a GET to the /admin.conversations.search endpoint.
Search for public or private channels in an Enterprise organization.
FROM: https://api.slack.com/methods/admin.conversations.search
Parameters:
token: &str– Authentication token. Requires scope:admin.conversations:read.team_ids: &str– Comma separated string of team IDs, signifying the workspaces to search through.query: &str– Name of the the channel to query by.limit: i64– Maximum number of items to be returned. Must be between 1 - 20 both inclusive. Default is 10.cursor: &str– Setcursortonext_cursorreturned by the previous call to list items in the next page.search_channel_types: &str– The type of channel to include or exclude in the search. For exampleprivatewill search private channels, whileprivate_excludewill exclude them. For a full list of types, check the Types section.sort: &str– Possible values arerelevant(search ranking based on what we think is closest),name(alphabetical),member_count(number of users in the channel), andcreated(date channel was created). You can optionally pair this with thesort_dirarg to change how it is sorted .sort_dir: &str– Sort direction. Possible values areascfor ascending order like (1, 2, 3) or (a, b, c), anddescfor descending order like (3, 2, 1) or (c, b, a).
sourcepub async fn set_conversation_prefs(&self) -> Result<DndEndSchema>
pub async fn set_conversation_prefs(&self) -> Result<DndEndSchema>
This function performs a POST to the /admin.conversations.setConversationPrefs endpoint.
Set the posting permissions for a public or private channel.
FROM: https://api.slack.com/methods/admin.conversations.setConversationPrefs
Parameters:
token: &str– Authentication token. Requires scope:admin.conversations:write.
sourcepub async fn set_teams(&self) -> Result<DndEndSchema>
pub async fn set_teams(&self) -> Result<DndEndSchema>
This function performs a POST to the /admin.conversations.setTeams endpoint.
Set the workspaces in an Enterprise grid org that connect to a public or private channel.
FROM: https://api.slack.com/methods/admin.conversations.setTeams
Parameters:
token: &str– Authentication token. Requires scope:admin.conversations:write.
sourcepub async fn unarchive(&self) -> Result<DndEndSchema>
pub async fn unarchive(&self) -> Result<DndEndSchema>
This function performs a POST to the /admin.conversations.unarchive endpoint.
Unarchive a public or private channel.
FROM: https://api.slack.com/methods/admin.conversations.unarchive
Parameters:
token: &str– Authentication token. Requires scope:admin.conversations:write.
Auto Trait Implementations
impl !RefUnwindSafe for AdminConversations
impl Send for AdminConversations
impl Sync for AdminConversations
impl Unpin for AdminConversations
impl !UnwindSafe for AdminConversations
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> FutureExt for T
impl<T> FutureExt for T
fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more