Struct slack_morphism::SlackClient
source · [−]pub struct SlackClient<SCHC> where
SCHC: SlackClientHttpConnector + Send, {
pub http_api: SlackClientHttpApi<SCHC>,
}Fields
http_api: SlackClientHttpApi<SCHC>Implementations
pub async fn oauth2_access(
&self,
req: &SlackOAuthV2AccessTokenRequest
) -> ClientResult<SlackOAuthV2AccessTokenResponse>
pub async fn oauth2_access(
&self,
req: &SlackOAuthV2AccessTokenRequest
) -> ClientResult<SlackOAuthV2AccessTokenResponse>
https://api.slack.com/methods/oauth.v2.access
pub async fn post_webhook_message(
&self,
hook_url: &str,
req: &SlackApiPostWebhookMessageRequest
) -> ClientResult<SlackApiPostWebhookMessageResponse>
pub async fn post_webhook_message(
&self,
hook_url: &str,
req: &SlackApiPostWebhookMessageRequest
) -> ClientResult<SlackApiPostWebhookMessageResponse>
Post a webhook message using webhook url
Trait Implementations
Auto Trait Implementations
impl<SCHC> RefUnwindSafe for SlackClient<SCHC> where
SCHC: RefUnwindSafe,
impl<SCHC> Send for SlackClient<SCHC> where
SCHC: Sync,
impl<SCHC> Sync for SlackClient<SCHC> where
SCHC: Sync,
impl<SCHC> Unpin for SlackClient<SCHC>
impl<SCHC> UnwindSafe for SlackClient<SCHC> where
SCHC: RefUnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more