[][src]Trait slack_api::requests::SlackWebRequestSender

pub trait SlackWebRequestSender {
    type Error: Error;
#[must_use]    fn send<'life0, 'async_trait, I, K, V, S>(
        &'life0 self,
        method: S,
        params: I
    ) -> Pin<Box<dyn Future<Output = Result<String, Self::Error>> + Send + 'async_trait>>
    where
        I: IntoIterator + Send,
        K: AsRef<str>,
        V: AsRef<str>,
        I::Item: Borrow<(K, V)>,
        S: AsRef<str> + Send,
        I: 'async_trait,
        K: 'async_trait,
        V: 'async_trait,
        S: 'async_trait,
        'life0: 'async_trait,
        Self: 'async_trait
; }

Functionality for sending authenticated and unauthenticated requests to Slack via HTTP.

If you do not have a custom client to integrate with and just want to send requests, use the default_client() function to get a simple request sender.

Associated Types

type Error: Error

Loading content...

Required methods

#[must_use]fn send<'life0, 'async_trait, I, K, V, S>(
    &'life0 self,
    method: S,
    params: I
) -> Pin<Box<dyn Future<Output = Result<String, Self::Error>> + Send + 'async_trait>> where
    I: IntoIterator + Send,
    K: AsRef<str>,
    V: AsRef<str>,
    I::Item: Borrow<(K, V)>,
    S: AsRef<str> + Send,
    I: 'async_trait,
    K: 'async_trait,
    V: 'async_trait,
    S: 'async_trait,
    'life0: 'async_trait,
    Self: 'async_trait, 

Make an API call to Slack. Takes a map of parameters that get appended to the request as query params.

Loading content...

Implementations on Foreign Types

impl SlackWebRequestSender for Client[src]

type Error = Error

Loading content...

Implementors

Loading content...