Struct slack_morphism::SlackClientSession
source · pub struct SlackClientSession<'a, SCHC>where
SCHC: SlackClientHttpConnector + Send,{
pub http_session_api: SlackClientHttpSessionApi<'a, SCHC>,
}
Fields§
§http_session_api: SlackClientHttpSessionApi<'a, SCHC>
Implementations§
source§impl<'a, SCHC> SlackClientSession<'a, SCHC>where
SCHC: SlackClientHttpConnector + Send,
impl<'a, SCHC> SlackClientSession<'a, SCHC>where
SCHC: SlackClientHttpConnector + Send,
sourcepub async fn apps_connections_open(
&self,
req: &SlackApiAppsConnectionOpenRequest
) -> ClientResult<SlackApiAppsConnectionOpenResponse>
pub async fn apps_connections_open( &self, req: &SlackApiAppsConnectionOpenRequest ) -> ClientResult<SlackApiAppsConnectionOpenResponse>
https://api.slack.com/methods/apps.connections.open
sourcepub async fn apps_manifest_create(
&self,
req: &SlackApiAppsManifestCreateRequest
) -> ClientResult<SlackApiAppsManifestCreateResponse>
pub async fn apps_manifest_create( &self, req: &SlackApiAppsManifestCreateRequest ) -> ClientResult<SlackApiAppsManifestCreateResponse>
https://api.slack.com/methods/apps.manifest.create
sourcepub async fn apps_manifest_delete(
&self,
req: &SlackApiAppsManifestDeleteRequest
) -> ClientResult<()>
pub async fn apps_manifest_delete( &self, req: &SlackApiAppsManifestDeleteRequest ) -> ClientResult<()>
https://api.slack.com/methods/apps.manifest.delete
sourcepub async fn apps_manifest_export(
&self,
req: &SlackApiAppsManifestExportRequest
) -> ClientResult<SlackApiAppsManifestExportResponse>
pub async fn apps_manifest_export( &self, req: &SlackApiAppsManifestExportRequest ) -> ClientResult<SlackApiAppsManifestExportResponse>
https://api.slack.com/methods/apps.manifest.export
sourcepub async fn apps_manifest_update(
&self,
req: &SlackApiAppsManifestUpdateRequest
) -> ClientResult<SlackApiAppsManifestUpdateResponse>
pub async fn apps_manifest_update( &self, req: &SlackApiAppsManifestUpdateRequest ) -> ClientResult<SlackApiAppsManifestUpdateResponse>
https://api.slack.com/methods/apps.manifest.update
sourcepub async fn apps_manifest_validate(
&self,
req: &SlackApiAppsManifestValidateRequest
) -> ClientResult<()>
pub async fn apps_manifest_validate( &self, req: &SlackApiAppsManifestValidateRequest ) -> ClientResult<()>
https://api.slack.com/methods/apps.manifest.validate
source§impl<'a, SCHC> SlackClientSession<'a, SCHC>where
SCHC: SlackClientHttpConnector + Send,
impl<'a, SCHC> SlackClientSession<'a, SCHC>where
SCHC: SlackClientHttpConnector + Send,
sourcepub async fn auth_test(&self) -> ClientResult<SlackApiAuthTestResponse>
pub async fn auth_test(&self) -> ClientResult<SlackApiAuthTestResponse>
https://api.slack.com/methods/auth.test
source§impl<'a, SCHC> SlackClientSession<'a, SCHC>where
SCHC: SlackClientHttpConnector + Send,
impl<'a, SCHC> SlackClientSession<'a, SCHC>where
SCHC: SlackClientHttpConnector + Send,
sourcepub async fn bots_info(
&self,
req: &SlackApiBotsInfoRequest
) -> ClientResult<SlackApiBotsInfoResponse>
pub async fn bots_info( &self, req: &SlackApiBotsInfoRequest ) -> ClientResult<SlackApiBotsInfoResponse>
https://api.slack.com/methods/bots.info
source§impl<'a, SCHC> SlackClientSession<'a, SCHC>where
SCHC: SlackClientHttpConnector + Send,
impl<'a, SCHC> SlackClientSession<'a, SCHC>where
SCHC: SlackClientHttpConnector + Send,
sourcepub async fn chat_delete(
&self,
req: &SlackApiChatDeleteRequest
) -> ClientResult<SlackApiChatDeleteResponse>
pub async fn chat_delete( &self, req: &SlackApiChatDeleteRequest ) -> ClientResult<SlackApiChatDeleteResponse>
https://api.slack.com/methods/chat.delete
sourcepub async fn chat_delete_scheduled_message(
&self,
req: &SlackApiChatDeleteScheduledMessageRequest
) -> ClientResult<SlackApiChatDeleteScheduledMessageResponse>
pub async fn chat_delete_scheduled_message( &self, req: &SlackApiChatDeleteScheduledMessageRequest ) -> ClientResult<SlackApiChatDeleteScheduledMessageResponse>
https://api.slack.com/methods/chat.deleteScheduledMessage
sourcepub async fn chat_get_permalink(
&self,
req: &SlackApiChatGetPermalinkRequest
) -> ClientResult<SlackApiChatGetPermalinkResponse>
pub async fn chat_get_permalink( &self, req: &SlackApiChatGetPermalinkRequest ) -> ClientResult<SlackApiChatGetPermalinkResponse>
https://api.slack.com/methods/chat.getPermalink
sourcepub async fn chat_post_ephemeral(
&self,
req: &SlackApiChatPostEphemeralRequest
) -> ClientResult<SlackApiChatPostEphemeralResponse>
pub async fn chat_post_ephemeral( &self, req: &SlackApiChatPostEphemeralRequest ) -> ClientResult<SlackApiChatPostEphemeralResponse>
https://api.slack.com/methods/chat.postEphemeral
sourcepub async fn chat_post_message(
&self,
req: &SlackApiChatPostMessageRequest
) -> ClientResult<SlackApiChatPostMessageResponse>
pub async fn chat_post_message( &self, req: &SlackApiChatPostMessageRequest ) -> ClientResult<SlackApiChatPostMessageResponse>
https://api.slack.com/methods/chat.postMessage
sourcepub async fn chat_schedule_message(
&self,
req: &SlackApiChatScheduleMessageRequest
) -> ClientResult<SlackApiChatScheduleMessageResponse>
pub async fn chat_schedule_message( &self, req: &SlackApiChatScheduleMessageRequest ) -> ClientResult<SlackApiChatScheduleMessageResponse>
https://api.slack.com/methods/chat.scheduleMessage
sourcepub async fn chat_unfurl(
&self,
req: &SlackApiChatUnfurlRequest
) -> ClientResult<SlackApiChatUnfurlResponse>
pub async fn chat_unfurl( &self, req: &SlackApiChatUnfurlRequest ) -> ClientResult<SlackApiChatUnfurlResponse>
The old/legacy version of unfurl with channel/ts https://api.slack.com/methods/chat.unfurl
sourcepub async fn chat_unfurl_v2(
&self,
req: &SlackApiChatUnfurlRequestV2
) -> ClientResult<SlackApiChatUnfurlResponse>
pub async fn chat_unfurl_v2( &self, req: &SlackApiChatUnfurlRequestV2 ) -> ClientResult<SlackApiChatUnfurlResponse>
The version for unfurl with source/unfurl_id https://api.slack.com/methods/chat.unfurl
sourcepub async fn chat_update(
&self,
req: &SlackApiChatUpdateRequest
) -> ClientResult<SlackApiChatUpdateResponse>
pub async fn chat_update( &self, req: &SlackApiChatUpdateRequest ) -> ClientResult<SlackApiChatUpdateResponse>
https://api.slack.com/methods/chat.update
sourcepub async fn chat_scheduled_messages_list(
&self,
req: &SlackApiChatScheduledMessagesListRequest
) -> ClientResult<SlackApiChatScheduledMessagesListResponse>
pub async fn chat_scheduled_messages_list( &self, req: &SlackApiChatScheduledMessagesListRequest ) -> ClientResult<SlackApiChatScheduledMessagesListResponse>
https://api.slack.com/methods/chat.scheduledMessages.list
source§impl<'a, SCHC> SlackClientSession<'a, SCHC>where
SCHC: SlackClientHttpConnector + Send,
impl<'a, SCHC> SlackClientSession<'a, SCHC>where
SCHC: SlackClientHttpConnector + Send,
sourcepub async fn conversations_archive(
&self,
req: &SlackApiConversationsArchiveRequest
) -> ClientResult<SlackApiConversationsArchiveResponse>
pub async fn conversations_archive( &self, req: &SlackApiConversationsArchiveRequest ) -> ClientResult<SlackApiConversationsArchiveResponse>
https://api.slack.com/methods/conversations.archive
sourcepub async fn conversations_close(
&self,
req: &SlackApiConversationsCloseRequest
) -> ClientResult<SlackApiConversationsCloseResponse>
pub async fn conversations_close( &self, req: &SlackApiConversationsCloseRequest ) -> ClientResult<SlackApiConversationsCloseResponse>
https://api.slack.com/methods/conversations.close
sourcepub async fn conversations_create(
&self,
req: &SlackApiConversationsCreateRequest
) -> ClientResult<SlackApiConversationsCreateResponse>
pub async fn conversations_create( &self, req: &SlackApiConversationsCreateRequest ) -> ClientResult<SlackApiConversationsCreateResponse>
https://api.slack.com/methods/conversations.create
sourcepub async fn conversations_history(
&self,
req: &SlackApiConversationsHistoryRequest
) -> ClientResult<SlackApiConversationsHistoryResponse>
pub async fn conversations_history( &self, req: &SlackApiConversationsHistoryRequest ) -> ClientResult<SlackApiConversationsHistoryResponse>
https://api.slack.com/methods/conversations.history
sourcepub async fn conversations_info(
&self,
req: &SlackApiConversationsInfoRequest
) -> ClientResult<SlackApiConversationsInfoResponse>
pub async fn conversations_info( &self, req: &SlackApiConversationsInfoRequest ) -> ClientResult<SlackApiConversationsInfoResponse>
https://api.slack.com/methods/conversations.info
sourcepub async fn conversations_invite(
&self,
req: &SlackApiConversationsInviteRequest
) -> ClientResult<SlackApiConversationsInviteResponse>
pub async fn conversations_invite( &self, req: &SlackApiConversationsInviteRequest ) -> ClientResult<SlackApiConversationsInviteResponse>
https://api.slack.com/methods/conversations.invite
sourcepub async fn conversations_join(
&self,
req: &SlackApiConversationsJoinRequest
) -> ClientResult<SlackApiConversationsJoinResponse>
pub async fn conversations_join( &self, req: &SlackApiConversationsJoinRequest ) -> ClientResult<SlackApiConversationsJoinResponse>
https://api.slack.com/methods/conversations.join
sourcepub async fn conversations_kick(
&self,
req: &SlackApiConversationsKickRequest
) -> ClientResult<SlackApiConversationsKickResponse>
pub async fn conversations_kick( &self, req: &SlackApiConversationsKickRequest ) -> ClientResult<SlackApiConversationsKickResponse>
https://api.slack.com/methods/conversations.kick
sourcepub async fn conversations_leave(
&self,
req: &SlackApiConversationsLeaveRequest
) -> ClientResult<SlackApiConversationsLeaveResponse>
pub async fn conversations_leave( &self, req: &SlackApiConversationsLeaveRequest ) -> ClientResult<SlackApiConversationsLeaveResponse>
https://api.slack.com/methods/conversations.leave
sourcepub async fn conversations_list(
&self,
req: &SlackApiConversationsListRequest
) -> ClientResult<SlackApiConversationsListResponse>
pub async fn conversations_list( &self, req: &SlackApiConversationsListRequest ) -> ClientResult<SlackApiConversationsListResponse>
https://api.slack.com/methods/conversations.list
sourcepub async fn conversations_members(
&self,
req: &SlackApiConversationsMembersRequest
) -> ClientResult<SlackApiConversationsMembersResponse>
pub async fn conversations_members( &self, req: &SlackApiConversationsMembersRequest ) -> ClientResult<SlackApiConversationsMembersResponse>
https://api.slack.com/methods/conversations.members
sourcepub async fn conversations_open(
&self,
req: &SlackApiConversationsOpenRequest
) -> ClientResult<SlackApiConversationsOpenResponse<SlackBasicChannelInfo>>
pub async fn conversations_open( &self, req: &SlackApiConversationsOpenRequest ) -> ClientResult<SlackApiConversationsOpenResponse<SlackBasicChannelInfo>>
https://api.slack.com/methods/conversations.open return_im is set to None
sourcepub async fn conversations_open_full(
&self,
req: &SlackApiConversationsOpenRequest
) -> ClientResult<SlackApiConversationsOpenResponse<SlackChannelInfo>>
pub async fn conversations_open_full( &self, req: &SlackApiConversationsOpenRequest ) -> ClientResult<SlackApiConversationsOpenResponse<SlackChannelInfo>>
https://api.slack.com/methods/conversations.open return_im is set to Some(true)
sourcepub async fn conversations_rename(
&self,
req: &SlackApiConversationsRenameRequest
) -> ClientResult<SlackApiConversationsRenameResponse>
pub async fn conversations_rename( &self, req: &SlackApiConversationsRenameRequest ) -> ClientResult<SlackApiConversationsRenameResponse>
https://api.slack.com/methods/conversations.rename
sourcepub async fn conversations_replies(
&self,
req: &SlackApiConversationsRepliesRequest
) -> ClientResult<SlackApiConversationsRepliesResponse>
pub async fn conversations_replies( &self, req: &SlackApiConversationsRepliesRequest ) -> ClientResult<SlackApiConversationsRepliesResponse>
https://api.slack.com/methods/conversations.replies
sourcepub async fn conversations_set_purpose(
&self,
req: &SlackApiConversationsSetPurposeRequest
) -> ClientResult<SlackApiConversationsSetPurposeResponse>
pub async fn conversations_set_purpose( &self, req: &SlackApiConversationsSetPurposeRequest ) -> ClientResult<SlackApiConversationsSetPurposeResponse>
https://api.slack.com/methods/conversations.setPurpose
sourcepub async fn conversations_set_topic(
&self,
req: &SlackApiConversationsSetTopicRequest
) -> ClientResult<SlackApiConversationsSetTopicResponse>
pub async fn conversations_set_topic( &self, req: &SlackApiConversationsSetTopicRequest ) -> ClientResult<SlackApiConversationsSetTopicResponse>
https://api.slack.com/methods/conversations.setTopic
sourcepub async fn conversations_unarchive(
&self,
req: &SlackApiConversationsUnarchiveRequest
) -> ClientResult<SlackApiConversationsUnarchiveResponse>
pub async fn conversations_unarchive( &self, req: &SlackApiConversationsUnarchiveRequest ) -> ClientResult<SlackApiConversationsUnarchiveResponse>
https://api.slack.com/methods/conversations.unarchive
source§impl<'a, SCHC> SlackClientSession<'a, SCHC>where
SCHC: SlackClientHttpConnector + Send,
impl<'a, SCHC> SlackClientSession<'a, SCHC>where
SCHC: SlackClientHttpConnector + Send,
sourcepub async fn files_upload(
&self,
req: &SlackApiFilesUploadRequest
) -> ClientResult<SlackApiFilesUploadResponse>
pub async fn files_upload( &self, req: &SlackApiFilesUploadRequest ) -> ClientResult<SlackApiFilesUploadResponse>
https://api.slack.com/methods/files.upload
source§impl<'a, SCHC> SlackClientSession<'a, SCHC>where
SCHC: SlackClientHttpConnector + Send,
impl<'a, SCHC> SlackClientSession<'a, SCHC>where
SCHC: SlackClientHttpConnector + Send,
sourcepub async fn reactions_get(
&self,
req: &SlackApiReactionsGetRequest
) -> ClientResult<SlackApiReactionsGetResponse>
pub async fn reactions_get( &self, req: &SlackApiReactionsGetRequest ) -> ClientResult<SlackApiReactionsGetResponse>
https://api.slack.com/methods/reactions.get
sourcepub async fn reactions_add(
&self,
req: &SlackApiReactionsAddRequest
) -> ClientResult<SlackApiReactionsAddResponse>
pub async fn reactions_add( &self, req: &SlackApiReactionsAddRequest ) -> ClientResult<SlackApiReactionsAddResponse>
https://api.slack.com/methods/reactions.add
sourcepub async fn reactions_remove(
&self,
req: &SlackApiReactionsRemoveRequest
) -> ClientResult<SlackApiReactionsRemoveResponse>
pub async fn reactions_remove( &self, req: &SlackApiReactionsRemoveRequest ) -> ClientResult<SlackApiReactionsRemoveResponse>
https://api.slack.com/methods/reactions.remove
source§impl<'a, SCHC> SlackClientSession<'a, SCHC>where
SCHC: SlackClientHttpConnector + Send,
impl<'a, SCHC> SlackClientSession<'a, SCHC>where
SCHC: SlackClientHttpConnector + Send,
sourcepub async fn team_info(
&self,
req: &SlackApiTeamInfoRequest
) -> ClientResult<SlackApiTeamInfoResponse>
pub async fn team_info( &self, req: &SlackApiTeamInfoRequest ) -> ClientResult<SlackApiTeamInfoResponse>
https://api.slack.com/methods/team.info
sourcepub async fn team_profile_get(
&self,
req: &SlackApiTeamProfileGetRequest
) -> ClientResult<SlackApiTeamProfileGetResponse>
pub async fn team_profile_get( &self, req: &SlackApiTeamProfileGetRequest ) -> ClientResult<SlackApiTeamProfileGetResponse>
https://api.slack.com/methods/team.profile.get
source§impl<'a, SCHC> SlackClientSession<'a, SCHC>where
SCHC: SlackClientHttpConnector + Send,
impl<'a, SCHC> SlackClientSession<'a, SCHC>where
SCHC: SlackClientHttpConnector + Send,
sourcepub async fn api_test(
&self,
req: &SlackApiTestRequest
) -> ClientResult<SlackApiTestResponse>
pub async fn api_test( &self, req: &SlackApiTestRequest ) -> ClientResult<SlackApiTestResponse>
https://api.slack.com/methods/api.test
source§impl<'a, SCHC> SlackClientSession<'a, SCHC>where
SCHC: SlackClientHttpConnector + Send,
impl<'a, SCHC> SlackClientSession<'a, SCHC>where
SCHC: SlackClientHttpConnector + Send,
sourcepub async fn usergroups_list(
&self,
req: &SlackApiUserGroupsListRequest
) -> ClientResult<SlackApiUserGroupsListResponse>
pub async fn usergroups_list( &self, req: &SlackApiUserGroupsListRequest ) -> ClientResult<SlackApiUserGroupsListResponse>
https://api.slack.com/methods/usergroups.list
sourcepub async fn usergroups_users_list(
&self,
req: &SlackApiUserGroupsUsersListRequest
) -> ClientResult<SlackApiUserGroupsUsersListResponse>
pub async fn usergroups_users_list( &self, req: &SlackApiUserGroupsUsersListRequest ) -> ClientResult<SlackApiUserGroupsUsersListResponse>
https://api.slack.com/methods/usergroups.users.list
source§impl<'a, SCHC> SlackClientSession<'a, SCHC>where
SCHC: SlackClientHttpConnector + Send,
impl<'a, SCHC> SlackClientSession<'a, SCHC>where
SCHC: SlackClientHttpConnector + Send,
sourcepub async fn users_conversations(
&self,
req: &SlackApiUsersConversationsRequest
) -> ClientResult<SlackApiUsersConversationsResponse>
pub async fn users_conversations( &self, req: &SlackApiUsersConversationsRequest ) -> ClientResult<SlackApiUsersConversationsResponse>
https://api.slack.com/methods/users.conversations
sourcepub async fn users_get_presence(
&self,
req: &SlackApiUsersGetPresenceRequest
) -> ClientResult<SlackApiUsersGetPresenceResponse>
pub async fn users_get_presence( &self, req: &SlackApiUsersGetPresenceRequest ) -> ClientResult<SlackApiUsersGetPresenceResponse>
https://api.slack.com/methods/users.getPresence
sourcepub async fn users_identity(
&self
) -> ClientResult<SlackApiUsersGetPresenceResponse>
pub async fn users_identity( &self ) -> ClientResult<SlackApiUsersGetPresenceResponse>
https://api.slack.com/methods/users.identity
sourcepub async fn users_info(
&self,
req: &SlackApiUsersInfoRequest
) -> ClientResult<SlackApiUsersInfoResponse>
pub async fn users_info( &self, req: &SlackApiUsersInfoRequest ) -> ClientResult<SlackApiUsersInfoResponse>
https://api.slack.com/methods/users.info
sourcepub async fn users_list(
&self,
req: &SlackApiUsersListRequest
) -> ClientResult<SlackApiUsersListResponse>
pub async fn users_list( &self, req: &SlackApiUsersListRequest ) -> ClientResult<SlackApiUsersListResponse>
https://api.slack.com/methods/users.list
sourcepub async fn users_lookup_by_email(
&self,
req: &SlackApiUsersLookupByEmailRequest
) -> ClientResult<SlackApiUsersLookupByEmailResponse>
pub async fn users_lookup_by_email( &self, req: &SlackApiUsersLookupByEmailRequest ) -> ClientResult<SlackApiUsersLookupByEmailResponse>
https://api.slack.com/methods/users.lookupByEmail
sourcepub async fn users_set_presence(
&self,
req: &SlackApiUsersSetPresenceRequest
) -> ClientResult<SlackApiUsersSetPresenceResponse>
pub async fn users_set_presence( &self, req: &SlackApiUsersSetPresenceRequest ) -> ClientResult<SlackApiUsersSetPresenceResponse>
https://api.slack.com/methods/users.setPresence
sourcepub async fn users_profile_get(
&self,
req: &SlackApiUsersProfileGetRequest
) -> ClientResult<SlackApiUsersProfileGetResponse>
pub async fn users_profile_get( &self, req: &SlackApiUsersProfileGetRequest ) -> ClientResult<SlackApiUsersProfileGetResponse>
https://api.slack.com/methods/users.profile.get
sourcepub async fn users_profile_set(
&self,
req: &SlackApiUsersProfileSetRequest
) -> ClientResult<SlackApiUsersProfileSetResponse>
pub async fn users_profile_set( &self, req: &SlackApiUsersProfileSetRequest ) -> ClientResult<SlackApiUsersProfileSetResponse>
https://api.slack.com/methods/users.profile.set
source§impl<'a, SCHC> SlackClientSession<'a, SCHC>where
SCHC: SlackClientHttpConnector + Send,
impl<'a, SCHC> SlackClientSession<'a, SCHC>where
SCHC: SlackClientHttpConnector + Send,
sourcepub async fn views_open(
&self,
req: &SlackApiViewsOpenRequest
) -> ClientResult<SlackApiViewsOpenResponse>
pub async fn views_open( &self, req: &SlackApiViewsOpenRequest ) -> ClientResult<SlackApiViewsOpenResponse>
https://api.slack.com/methods/views.open
sourcepub async fn views_publish(
&self,
req: &SlackApiViewsPublishRequest
) -> ClientResult<SlackApiViewsPublishResponse>
pub async fn views_publish( &self, req: &SlackApiViewsPublishRequest ) -> ClientResult<SlackApiViewsPublishResponse>
https://api.slack.com/methods/views.publish
sourcepub async fn views_push(
&self,
req: &SlackApiViewsPushRequest
) -> ClientResult<SlackApiViewsPushResponse>
pub async fn views_push( &self, req: &SlackApiViewsPushRequest ) -> ClientResult<SlackApiViewsPushResponse>
https://api.slack.com/methods/views.push
sourcepub async fn views_update(
&self,
req: &SlackApiViewsUpdateRequest
) -> ClientResult<SlackApiViewsUpdateResponse>
pub async fn views_update( &self, req: &SlackApiViewsUpdateRequest ) -> ClientResult<SlackApiViewsUpdateResponse>
https://api.slack.com/methods/views.update