pub struct SlackClientHttpSessionApi<'a, SCHC>where
SCHC: SlackClientHttpConnector + Send,{
pub client: &'a SlackClient<SCHC>,
pub span: Span,
/* private fields */
}
Fields§
§client: &'a SlackClient<SCHC>
§span: Span
Implementations§
Source§impl<'a, SCHC> SlackClientHttpSessionApi<'a, SCHC>where
SCHC: SlackClientHttpConnector + Send,
impl<'a, SCHC> SlackClientHttpSessionApi<'a, SCHC>where
SCHC: SlackClientHttpConnector + Send,
pub async fn http_get_uri<RS, PT, TS>(
&self,
full_uri: Url,
rate_control_params: Option<&'a SlackApiMethodRateControlConfig>,
) -> ClientResult<RS>where
RS: for<'de> Deserialize<'de> + Send,
pub async fn http_get<'p, RS, PT, TS>(
&self,
method_relative_uri: &str,
params: &'p PT,
rate_control_params: Option<&'a SlackApiMethodRateControlConfig>,
) -> ClientResult<RS>where
RS: for<'de> Deserialize<'de> + Send,
PT: IntoIterator<Item = (&'p str, Option<TS>)> + Clone,
TS: AsRef<str> + 'p + Send,
pub async fn http_post<RQ, RS>( &self, method_relative_uri: &str, request: &RQ, rate_control_params: Option<&'a SlackApiMethodRateControlConfig>, ) -> ClientResult<RS>
pub async fn http_post_uri<RQ, RS>( &self, full_uri: Url, request: &RQ, rate_control_params: Option<&'a SlackApiMethodRateControlConfig>, ) -> ClientResult<RS>
pub async fn http_post_multipart_form<'p, RS, PT, TS>(
&self,
method_relative_uri: &str,
file: Option<FileMultipartData<'p>>,
params: &'p PT,
rate_control_params: Option<&'a SlackApiMethodRateControlConfig>,
) -> ClientResult<RS>where
RS: for<'de> Deserialize<'de> + Send,
PT: IntoIterator<Item = (&'p str, Option<TS>)> + Clone,
TS: AsRef<str> + 'p + Send,
pub async fn http_post_uri_multipart_form<'p, RS, PT, TS>(
&self,
full_uri: Url,
file: Option<FileMultipartData<'p>>,
params: &'p PT,
rate_control_params: Option<&'a SlackApiMethodRateControlConfig>,
) -> ClientResult<RS>where
RS: for<'de> Deserialize<'de> + Send,
PT: IntoIterator<Item = (&'p str, Option<TS>)> + Clone,
TS: AsRef<str> + 'p + Send,
pub async fn http_post_uri_binary<'p, RS>(
&self,
full_uri: Url,
content_type: String,
data: &'a [u8],
rate_control_params: Option<&'a SlackApiMethodRateControlConfig>,
) -> ClientResult<RS>where
RS: for<'de> Deserialize<'de> + Send,
Trait Implementations§
Auto Trait Implementations§
impl<'a, SCHC> Freeze for SlackClientHttpSessionApi<'a, SCHC>
impl<'a, SCHC> !RefUnwindSafe for SlackClientHttpSessionApi<'a, SCHC>
impl<'a, SCHC> Send for SlackClientHttpSessionApi<'a, SCHC>where
SCHC: Sync,
impl<'a, SCHC> Sync for SlackClientHttpSessionApi<'a, SCHC>where
SCHC: Sync,
impl<'a, SCHC> Unpin for SlackClientHttpSessionApi<'a, SCHC>
impl<'a, SCHC> !UnwindSafe for SlackClientHttpSessionApi<'a, SCHC>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more