[−][src]Struct slack_morphism::SlackClientHttpApi
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]
url: &str
) -> Result<Response<Body>, Box<dyn Error + Send + Sync>>
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]
&'_ self,
full_uri: Uri,
token: Option<&'a SlackApiToken>
) -> ClientResult<RS> where
RS: for<'de> Deserialize<'de>,
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]
&'_ 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,
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]
&'_ self,
full_uri: Uri,
request_body: &'_ RQ,
token: Option<&'a SlackApiToken>
) -> ClientResult<RS> where
RQ: Serialize,
RS: for<'de> Deserialize<'de>,
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]
&'_ self,
method_relative_uri: &'_ str,
request: &'_ RQ
) -> ClientResult<RS> where
RQ: Serialize,
RS: for<'de> Deserialize<'de>,
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for SlackClientHttpApi
impl Send for SlackClientHttpApi
impl Sync for SlackClientHttpApi
impl Unpin for SlackClientHttpApi
impl !UnwindSafe for SlackClientHttpApi
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,