Struct slack_morphism::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>

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

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>,

§

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>,

§

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