[][src]Struct slack_morphism::SlackClientHttpApi

pub struct SlackClientHttpApi { /* fields omitted */ }

Implementations

impl SlackClientHttpApi[src]

pub fn parse_query_params(request: &Request<Body>) -> HashMap<String, String>[src]

pub fn hyper_redirect_to(
    url: &str
) -> Result<Response<Body>, Box<dyn Error + Send + Sync>>
[src]

pub async fn http_get_uri<'a, RS, '_>(
    &'_ self,
    full_uri: Uri,
    token: Option<&'a SlackApiToken>
) -> ClientResult<RS> where
    RS: for<'de> Deserialize<'de>, 
[src]

pub async fn http_get<'p, RS, PT, TS, '_, '_>(
    &'_ self,
    method_relative_uri: &'_ str,
    params: &'p PT
) -> ClientResult<RS> where
    RS: for<'de> Deserialize<'de>,
    PT: IntoIterator<Item = (&'p str, Option<&'p TS>)> + Clone,
    TS: ToString + 'p, 
[src]

pub async fn http_post_uri<'a, RQ, RS, '_, '_>(
    &'_ self,
    full_uri: Uri,
    request_body: &'_ RQ,
    token: Option<&'a SlackApiToken>
) -> ClientResult<RS> where
    RQ: Serialize,
    RS: for<'de> Deserialize<'de>, 
[src]

pub async fn http_post<RQ, RS, '_, '_, '_>(
    &'_ self,
    method_relative_uri: &'_ str,
    request: &'_ RQ
) -> ClientResult<RS> where
    RQ: Serialize,
    RS: for<'de> Deserialize<'de>, 
[src]

Trait Implementations

impl Debug for SlackClientHttpApi[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.