[][src]Struct slack_morphism::SlackClient

pub struct SlackClient {
    pub http_api: SlackClientHttpApi,
}

Fields

http_api: SlackClientHttpApi

Implementations

impl SlackClient[src]

pub async fn oauth2_access<'_, '_>(
    &'_ self,
    req: &'_ SlackOAuthV2AccessTokenRequest
) -> ClientResult<SlackOAuthV2AccessTokenResponse>
[src]

https://api.slack.com/methods/oauth.v2.access

impl SlackClient[src]

pub async fn post_webhook_message<'_, '_, '_>(
    &'_ self,
    hook_url: &'_ str,
    req: &'_ SlackApiPostWebhookMessageRequest
) -> ClientResult<SlackApiPostWebhookMessageResponse>
[src]

Post a webhook message using webhook url

impl SlackClient[src]

pub fn new() -> Self[src]

pub fn open_session<'a>(
    &'a self,
    token: &'a SlackApiToken
) -> SlackClientSession<'a>
[src]

Trait Implementations

impl Debug for SlackClient[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.