pub trait SlackClientHttpConnector {
// Required methods
fn http_get_uri<'a, RS>(
&'a self,
full_uri: Url,
context: SlackClientApiCallContext<'a>
) -> BoxFuture<'a, ClientResult<RS>>
where RS: for<'de> Deserialize<'de> + Send + 'a;
fn http_get_with_client_secret<'a, RS>(
&'a self,
full_uri: Url,
client_id: &'a SlackClientId,
client_secret: &'a SlackClientSecret
) -> BoxFuture<'a, ClientResult<RS>>
where RS: for<'de> Deserialize<'de> + Send + 'a;
fn http_post_uri<'a, RQ, RS>(
&'a self,
full_uri: Url,
request_body: &'a RQ,
context: SlackClientApiCallContext<'a>
) -> BoxFuture<'a, ClientResult<RS>>
where RQ: Serialize + Send + Sync,
RS: for<'de> Deserialize<'de> + Send + 'a;
fn http_post_uri_form_urlencoded<'a, RQ, RS>(
&'a self,
full_uri: Url,
request_body: &'a RQ,
context: SlackClientApiCallContext<'a>
) -> BoxFuture<'a, ClientResult<RS>>
where RQ: Serialize + Send + Sync,
RS: for<'de> Deserialize<'de> + Send + 'a;
fn http_post_uri_multipart<'a, 'p, RS, PT, TS>(
&'a self,
full_uri: Url,
file_name: String,
file_content_type: String,
file_content: &'p [u8],
params: &'p PT,
context: SlackClientApiCallContext<'a>
) -> BoxFuture<'a, ClientResult<RS>>
where RS: for<'de> Deserialize<'de> + Send + 'a,
PT: IntoIterator<Item = (&'p str, Option<&'p TS>)> + Clone,
TS: ToString + 'p + 'a + Send;
// Provided methods
fn http_get<'a, 'p, RS, PT, TS>(
&'a self,
method_relative_uri: &str,
params: &'p PT,
context: SlackClientApiCallContext<'a>
) -> BoxFuture<'a, ClientResult<RS>>
where RS: for<'de> Deserialize<'de> + Send + 'a,
PT: IntoIterator<Item = (&'p str, Option<&'p TS>)> + Clone,
TS: ToString + 'p + 'a + Send { ... }
fn http_post<'a, RQ, RS>(
&'a self,
method_relative_uri: &str,
request: &'a RQ,
context: SlackClientApiCallContext<'a>
) -> BoxFuture<'a, ClientResult<RS>>
where RQ: Serialize + Send + Sync,
RS: for<'de> Deserialize<'de> + Send + 'a { ... }
fn http_post_form_urlencoded<'a, RQ, RS>(
&'a self,
method_relative_uri: &str,
request: &'a RQ,
context: SlackClientApiCallContext<'a>
) -> BoxFuture<'a, ClientResult<RS>>
where RQ: Serialize + Send + Sync,
RS: for<'de> Deserialize<'de> + Send + 'a { ... }
fn http_post_multipart<'a, 'p, RS, PT, TS>(
&'a self,
method_relative_uri: &str,
file_name: String,
file_content_type: String,
file_content: &'p [u8],
params: &'p PT,
context: SlackClientApiCallContext<'a>
) -> BoxFuture<'a, ClientResult<RS>>
where RS: for<'de> Deserialize<'de> + Send + 'a,
PT: IntoIterator<Item = (&'p str, Option<&'p TS>)> + Clone,
TS: ToString + 'p + 'a + Send { ... }
}
Required Methods§
fn http_get_uri<'a, RS>(
&'a self,
full_uri: Url,
context: SlackClientApiCallContext<'a>
) -> BoxFuture<'a, ClientResult<RS>>where
RS: for<'de> Deserialize<'de> + Send + 'a,
fn http_get_with_client_secret<'a, RS>(
&'a self,
full_uri: Url,
client_id: &'a SlackClientId,
client_secret: &'a SlackClientSecret
) -> BoxFuture<'a, ClientResult<RS>>where
RS: for<'de> Deserialize<'de> + Send + 'a,
fn http_post_uri<'a, RQ, RS>( &'a self, full_uri: Url, request_body: &'a RQ, context: SlackClientApiCallContext<'a> ) -> BoxFuture<'a, ClientResult<RS>>
fn http_post_uri_form_urlencoded<'a, RQ, RS>( &'a self, full_uri: Url, request_body: &'a RQ, context: SlackClientApiCallContext<'a> ) -> BoxFuture<'a, ClientResult<RS>>
fn http_post_uri_multipart<'a, 'p, RS, PT, TS>(
&'a self,
full_uri: Url,
file_name: String,
file_content_type: String,
file_content: &'p [u8],
params: &'p PT,
context: SlackClientApiCallContext<'a>
) -> BoxFuture<'a, ClientResult<RS>>where
RS: for<'de> Deserialize<'de> + Send + 'a,
PT: IntoIterator<Item = (&'p str, Option<&'p TS>)> + Clone,
TS: ToString + 'p + 'a + Send,
Provided Methods§
fn http_get<'a, 'p, RS, PT, TS>(
&'a self,
method_relative_uri: &str,
params: &'p PT,
context: SlackClientApiCallContext<'a>
) -> BoxFuture<'a, ClientResult<RS>>where
RS: for<'de> Deserialize<'de> + Send + 'a,
PT: IntoIterator<Item = (&'p str, Option<&'p TS>)> + Clone,
TS: ToString + 'p + 'a + Send,
fn http_post<'a, RQ, RS>( &'a self, method_relative_uri: &str, request: &'a RQ, context: SlackClientApiCallContext<'a> ) -> BoxFuture<'a, ClientResult<RS>>
fn http_post_form_urlencoded<'a, RQ, RS>( &'a self, method_relative_uri: &str, request: &'a RQ, context: SlackClientApiCallContext<'a> ) -> BoxFuture<'a, ClientResult<RS>>
fn http_post_multipart<'a, 'p, RS, PT, TS>(
&'a self,
method_relative_uri: &str,
file_name: String,
file_content_type: String,
file_content: &'p [u8],
params: &'p PT,
context: SlackClientApiCallContext<'a>
) -> BoxFuture<'a, ClientResult<RS>>where
RS: for<'de> Deserialize<'de> + Send + 'a,
PT: IntoIterator<Item = (&'p str, Option<&'p TS>)> + Clone,
TS: ToString + 'p + 'a + Send,
Object Safety§
This trait is not object safe.