slack_morphism

Struct SlackClientSession

Source
pub struct SlackClientSession<'a, SCHC>{
    pub http_session_api: SlackClientHttpSessionApi<'a, SCHC>,
}

Fields§

§http_session_api: SlackClientHttpSessionApi<'a, SCHC>

Implementations§

Source§

impl<'a, SCHC> SlackClientSession<'a, SCHC>

Source

pub async fn apps_connections_open( &self, req: &SlackApiAppsConnectionOpenRequest, ) -> ClientResult<SlackApiAppsConnectionOpenResponse>

https://api.slack.com/methods/apps.connections.open

Source

pub async fn apps_manifest_create( &self, req: &SlackApiAppsManifestCreateRequest, ) -> ClientResult<SlackApiAppsManifestCreateResponse>

https://api.slack.com/methods/apps.manifest.create

Source

pub async fn apps_manifest_delete( &self, req: &SlackApiAppsManifestDeleteRequest, ) -> ClientResult<()>

https://api.slack.com/methods/apps.manifest.delete

Source

pub async fn apps_manifest_export( &self, req: &SlackApiAppsManifestExportRequest, ) -> ClientResult<SlackApiAppsManifestExportResponse>

https://api.slack.com/methods/apps.manifest.export

Source

pub async fn apps_manifest_update( &self, req: &SlackApiAppsManifestUpdateRequest, ) -> ClientResult<SlackApiAppsManifestUpdateResponse>

https://api.slack.com/methods/apps.manifest.update

Source

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>

Source

pub async fn auth_test(&self) -> ClientResult<SlackApiAuthTestResponse>

https://api.slack.com/methods/auth.test

Source§

impl<'a, SCHC> SlackClientSession<'a, SCHC>

Source

pub async fn bots_info( &self, req: &SlackApiBotsInfoRequest, ) -> ClientResult<SlackApiBotsInfoResponse>

https://api.slack.com/methods/bots.info

Source§

impl<'a, SCHC> SlackClientSession<'a, SCHC>

Source

pub async fn chat_delete( &self, req: &SlackApiChatDeleteRequest, ) -> ClientResult<SlackApiChatDeleteResponse>

https://api.slack.com/methods/chat.delete

Source

pub async fn chat_delete_scheduled_message( &self, req: &SlackApiChatDeleteScheduledMessageRequest, ) -> ClientResult<SlackApiChatDeleteScheduledMessageResponse>

https://api.slack.com/methods/chat.deleteScheduledMessage

https://api.slack.com/methods/chat.getPermalink

Source

pub async fn chat_post_ephemeral( &self, req: &SlackApiChatPostEphemeralRequest, ) -> ClientResult<SlackApiChatPostEphemeralResponse>

https://api.slack.com/methods/chat.postEphemeral

Source

pub async fn chat_post_message( &self, req: &SlackApiChatPostMessageRequest, ) -> ClientResult<SlackApiChatPostMessageResponse>

https://api.slack.com/methods/chat.postMessage

Source

pub async fn chat_schedule_message( &self, req: &SlackApiChatScheduleMessageRequest, ) -> ClientResult<SlackApiChatScheduleMessageResponse>

https://api.slack.com/methods/chat.scheduleMessage

Source

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

Source

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

Source

pub async fn chat_update( &self, req: &SlackApiChatUpdateRequest, ) -> ClientResult<SlackApiChatUpdateResponse>

https://api.slack.com/methods/chat.update

Source

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>

Source

pub async fn conversations_archive( &self, req: &SlackApiConversationsArchiveRequest, ) -> ClientResult<SlackApiConversationsArchiveResponse>

https://api.slack.com/methods/conversations.archive

Source

pub async fn conversations_close( &self, req: &SlackApiConversationsCloseRequest, ) -> ClientResult<SlackApiConversationsCloseResponse>

https://api.slack.com/methods/conversations.close

Source

pub async fn conversations_create( &self, req: &SlackApiConversationsCreateRequest, ) -> ClientResult<SlackApiConversationsCreateResponse>

https://api.slack.com/methods/conversations.create

Source

pub async fn conversations_history( &self, req: &SlackApiConversationsHistoryRequest, ) -> ClientResult<SlackApiConversationsHistoryResponse>

https://api.slack.com/methods/conversations.history

Source

pub async fn conversations_info( &self, req: &SlackApiConversationsInfoRequest, ) -> ClientResult<SlackApiConversationsInfoResponse>

https://api.slack.com/methods/conversations.info

Source

pub async fn conversations_invite( &self, req: &SlackApiConversationsInviteRequest, ) -> ClientResult<SlackApiConversationsInviteResponse>

https://api.slack.com/methods/conversations.invite

Source

pub async fn conversations_join( &self, req: &SlackApiConversationsJoinRequest, ) -> ClientResult<SlackApiConversationsJoinResponse>

https://api.slack.com/methods/conversations.join

Source

pub async fn conversations_kick( &self, req: &SlackApiConversationsKickRequest, ) -> ClientResult<SlackApiConversationsKickResponse>

https://api.slack.com/methods/conversations.kick

Source

pub async fn conversations_leave( &self, req: &SlackApiConversationsLeaveRequest, ) -> ClientResult<SlackApiConversationsLeaveResponse>

https://api.slack.com/methods/conversations.leave

Source

pub async fn conversations_list( &self, req: &SlackApiConversationsListRequest, ) -> ClientResult<SlackApiConversationsListResponse>

https://api.slack.com/methods/conversations.list

Source

pub async fn conversations_members( &self, req: &SlackApiConversationsMembersRequest, ) -> ClientResult<SlackApiConversationsMembersResponse>

https://api.slack.com/methods/conversations.members

Source

pub async fn conversations_open( &self, req: &SlackApiConversationsOpenRequest, ) -> ClientResult<SlackApiConversationsOpenResponse<SlackBasicChannelInfo>>

https://api.slack.com/methods/conversations.open return_im is set to None

Source

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)

Source

pub async fn conversations_rename( &self, req: &SlackApiConversationsRenameRequest, ) -> ClientResult<SlackApiConversationsRenameResponse>

https://api.slack.com/methods/conversations.rename

Source

pub async fn conversations_replies( &self, req: &SlackApiConversationsRepliesRequest, ) -> ClientResult<SlackApiConversationsRepliesResponse>

https://api.slack.com/methods/conversations.replies

Source

pub async fn conversations_set_purpose( &self, req: &SlackApiConversationsSetPurposeRequest, ) -> ClientResult<SlackApiConversationsSetPurposeResponse>

https://api.slack.com/methods/conversations.setPurpose

Source

pub async fn conversations_set_topic( &self, req: &SlackApiConversationsSetTopicRequest, ) -> ClientResult<SlackApiConversationsSetTopicResponse>

https://api.slack.com/methods/conversations.setTopic

Source

pub async fn conversations_unarchive( &self, req: &SlackApiConversationsUnarchiveRequest, ) -> ClientResult<SlackApiConversationsUnarchiveResponse>

https://api.slack.com/methods/conversations.unarchive

Source§

impl<'a, SCHC> SlackClientSession<'a, SCHC>

Source

pub async fn files_upload( &self, req: &SlackApiFilesUploadRequest, ) -> ClientResult<SlackApiFilesUploadResponse>

👎Deprecated: Deprecated by Slack. Use getUploadURLExternal/files_upload_via_url/completeUploadExternal instead.

https://api.slack.com/methods/files.upload

Source

pub async fn get_upload_url_external( &self, req: &SlackApiFilesGetUploadUrlExternalRequest, ) -> ClientResult<SlackApiFilesGetUploadUrlExternalResponse>

https://api.slack.com/methods/files.getUploadURLExternal

Source

pub async fn files_upload_via_url( &self, req: &SlackApiFilesUploadViaUrlRequest, ) -> ClientResult<SlackApiFilesUploadViaUrlResponse>

Source

pub async fn files_complete_upload_external( &self, req: &SlackApiFilesCompleteUploadExternalRequest, ) -> ClientResult<SlackApiFilesCompleteUploadExternalResponse>

https://api.slack.com/methods/files.completeUploadExternal

Source§

impl<'a, SCHC> SlackClientSession<'a, SCHC>

Source

pub async fn reactions_get( &self, req: &SlackApiReactionsGetRequest, ) -> ClientResult<SlackApiReactionsGetResponse>

https://api.slack.com/methods/reactions.get

Source

pub async fn reactions_add( &self, req: &SlackApiReactionsAddRequest, ) -> ClientResult<SlackApiReactionsAddResponse>

https://api.slack.com/methods/reactions.add

Source

pub async fn reactions_remove( &self, req: &SlackApiReactionsRemoveRequest, ) -> ClientResult<SlackApiReactionsRemoveResponse>

https://api.slack.com/methods/reactions.remove

Source§

impl<'a, SCHC> SlackClientSession<'a, SCHC>

Source

pub async fn stars_add( &self, req: &SlackApiStarsAddRequest, ) -> ClientResult<SlackApiStarsAddResponse>

https://api.slack.com/methods/stars.add

Source

pub async fn stars_remove( &self, req: &SlackApiStarsRemoveRequest, ) -> ClientResult<SlackApiStarsRemoveResponse>

https://api.slack.com/methods/stars.remove

Source§

impl<'a, SCHC> SlackClientSession<'a, SCHC>

Source

pub async fn team_info( &self, req: &SlackApiTeamInfoRequest, ) -> ClientResult<SlackApiTeamInfoResponse>

https://api.slack.com/methods/team.info

Source

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>

Source

pub async fn api_test( &self, req: &SlackApiTestRequest, ) -> ClientResult<SlackApiTestResponse>

https://api.slack.com/methods/api.test

Source§

impl<'a, SCHC> SlackClientSession<'a, SCHC>

Source

pub async fn usergroups_list( &self, req: &SlackApiUserGroupsListRequest, ) -> ClientResult<SlackApiUserGroupsListResponse>

https://api.slack.com/methods/usergroups.list

Source

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>

Source

pub async fn users_conversations( &self, req: &SlackApiUsersConversationsRequest, ) -> ClientResult<SlackApiUsersConversationsResponse>

https://api.slack.com/methods/users.conversations

Source

pub async fn users_get_presence( &self, req: &SlackApiUsersGetPresenceRequest, ) -> ClientResult<SlackApiUsersGetPresenceResponse>

https://api.slack.com/methods/users.getPresence

Source

pub async fn users_identity( &self, ) -> ClientResult<SlackApiUsersGetPresenceResponse>

https://api.slack.com/methods/users.identity

Source

pub async fn users_info( &self, req: &SlackApiUsersInfoRequest, ) -> ClientResult<SlackApiUsersInfoResponse>

https://api.slack.com/methods/users.info

Source

pub async fn users_list( &self, req: &SlackApiUsersListRequest, ) -> ClientResult<SlackApiUsersListResponse>

https://api.slack.com/methods/users.list

Source

pub async fn users_lookup_by_email( &self, req: &SlackApiUsersLookupByEmailRequest, ) -> ClientResult<SlackApiUsersLookupByEmailResponse>

https://api.slack.com/methods/users.lookupByEmail

Source

pub async fn users_set_presence( &self, req: &SlackApiUsersSetPresenceRequest, ) -> ClientResult<SlackApiUsersSetPresenceResponse>

https://api.slack.com/methods/users.setPresence

Source

pub async fn users_profile_get( &self, req: &SlackApiUsersProfileGetRequest, ) -> ClientResult<SlackApiUsersProfileGetResponse>

https://api.slack.com/methods/users.profile.get

Source

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>

Source

pub async fn views_open( &self, req: &SlackApiViewsOpenRequest, ) -> ClientResult<SlackApiViewsOpenResponse>

https://api.slack.com/methods/views.open

Source

pub async fn views_publish( &self, req: &SlackApiViewsPublishRequest, ) -> ClientResult<SlackApiViewsPublishResponse>

https://api.slack.com/methods/views.publish

Source

pub async fn views_push( &self, req: &SlackApiViewsPushRequest, ) -> ClientResult<SlackApiViewsPushResponse>

https://api.slack.com/methods/views.push

Source

pub async fn views_update( &self, req: &SlackApiViewsUpdateRequest, ) -> ClientResult<SlackApiViewsUpdateResponse>

https://api.slack.com/methods/views.update

Trait Implementations§

Source§

impl<'a, SCHC> Debug for SlackClientSession<'a, SCHC>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<'a, SCHC> Freeze for SlackClientSession<'a, SCHC>

§

impl<'a, SCHC> !RefUnwindSafe for SlackClientSession<'a, SCHC>

§

impl<'a, SCHC> Send for SlackClientSession<'a, SCHC>
where SCHC: Sync,

§

impl<'a, SCHC> Sync for SlackClientSession<'a, SCHC>
where SCHC: Sync,

§

impl<'a, SCHC> Unpin for SlackClientSession<'a, SCHC>

§

impl<'a, SCHC> !UnwindSafe for SlackClientSession<'a, SCHC>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

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
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more