SlackClient

Struct SlackClient 

Source
pub struct SlackClient { /* private fields */ }

Implementations§

Source§

impl SlackClient

Source

pub async fn chat_delete( &self, request: &SlackApiChatDeleteRequest, ) -> SlackApiResponse<SlackApiChatDeleteResponse>

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

Source

pub async fn chat_delete_scheduled_message( &self, request: &SlackApiChatDeleteScheduleMessageRequest, ) -> SlackApiResponse<SlackApiChatDeleteScheduleMessageResponse>

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

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

Source

pub async fn chat_me_message( &self, request: &SlackApiChatMeMessageRequest, ) -> SlackApiResponse<SlackApiChatMeMessageResponse>

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

Source

pub async fn chat_post_ephemeral( &self, request: &SlackApiChatPostEphemeralRequest, ) -> SlackApiResponse<SlackApiChatPostEphemeralResponse>

https://api.slack.com/methods/chat.postEphemeral あなただけに表示されています

Source

pub async fn chat_post_message<B: Into<SlackApiChatPostMessageRequest>>( &self, request: B, ) -> SlackApiResponse<SlackApiChatPostMessageResponse>

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

Source

pub async fn chat_schedule_message( &self, request: &SlackApiChatScheduleMessageRequest, ) -> SlackApiResponse<SlackApiChatScheduleMessageResponse>

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

Source

pub async fn chat_unfurl( &self, request: &SlackApiChatUnfurlRequest, ) -> SlackApiResponse<SlackApiChatUnfurlResponse>

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

Source

pub async fn chat_update( &self, request: &SlackApiChatUpdateRequest, ) -> SlackApiResponse<SlackApiChatUpdateResponse>

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

Source

pub async fn chat_schedule_message_list( &self, request: &SlackApiChatScheduledMessagesListRequest, ) -> SlackApiResponse<SlackApiChatScheduledMessagesListResponse>

https://api.slack.com/methods/chat.scheduledMessages.list

Source§

impl SlackClient

Source

pub async fn files_comments_delete( &self, value: &SlackApiFilesCommentsDeleteRequest, ) -> SlackApiResponse<SlackApiFilesCommentsDeleteResponse>

https://api.slack.com/methods/files.comments.delete

Source

pub async fn files_complete_upload_external( &self, value: &SlackApiFilesCompleteUploadExternalRequest, ) -> SlackApiResponse<SlackApiFilesCompleteUploadExternalResponse>

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

Source

pub async fn files_delete( &self, value: &SlackApiFilesDeleteRequest, ) -> SlackApiResponse<SlackApiFilesDeleteResponse>

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

Source

pub async fn files_get_upload_url_external( &self, value: &SlackApiFilesGetUploadUrlExternalRequest, ) -> SlackApiResponse<SlackApiFilesGetUploadUrlExternalResponse>

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

Source

pub async fn files_info( &self, value: &SlackApiFilesInfoRequest, ) -> SlackApiResponse<SlackApiFilesInfoResponse>

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

Source

pub async fn files_list( &self, value: &SlackApiFilesListRequest, ) -> SlackApiResponse<SlackApiFilesListResponse>

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

Source

pub async fn files_revoke_public_url( &self, value: &SlackApiFilesRevokePublicUrlRequest, ) -> SlackApiResponse<SlackApiFilesRevokePublicUrlResponse>

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

Source

pub async fn files_shared_public_url( &self, value: &SlackApiFilesSharePublicUrlRequest, ) -> SlackApiResponse<SlackApiFilesSharePublicUrlResponse>

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

Source

pub async fn files_upload( &self, value: &SlackApiFilesUploadRequest, ) -> SlackApiResponse<SlackApiFilesUploadResponse>

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

Source

pub async fn files_remote_add( &self, value: &SlackApiFilesRemoteAddRequest, ) -> SlackApiResponse<SlackApiFilesRemoteAddResponse>

https://api.slack.com/methods/files.remote.add

Source

pub async fn files_remote_info( &self, value: &SlackApiFilesRemoteInfoRequest, ) -> SlackApiResponse<SlackApiFilesRemoteInfoResponse>

https://api.slack.com/methods/files.remote.info

Source

pub async fn files_remote_list( &self, value: &SlackApiFilesRemoteListRequest, ) -> SlackApiResponse<SlackApiFilesRemoteListResponse>

https://api.slack.com/methods/files.remote.list

Source

pub async fn files_remote_remove( &self, value: &SlackApiFilesRemoteRemoveRequest, ) -> SlackApiResponse<SlackApiFilesRemoteRemoveResponse>

https://api.slack.com/methods/files.remote.remove

Source

pub async fn files_remote_share( &self, value: &SlackApiFilesRemoteShareRequest, ) -> SlackApiResponse<SlackApiFilesRemoteShareResponse>

https://api.slack.com/methods/files.remote.share

Source

pub async fn files_remote_update( &self, value: &SlackApiFilesRemoteUpdateRequest, ) -> SlackApiResponse<SlackApiFilesRemoteUpdateResponse>

https://api.slack.com/methods/files.remote.update

Source§

impl SlackClient

Source§

impl SlackClient

Source

pub fn new(token: &str) -> Self

Auto Trait Implementations§

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<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

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