pub struct SlackClientHttpSessionApi<'a, SCHC>where
SCHC: SlackClientHttpConnector + Send,{
pub span: Span,
/* private fields */
}
Fields§
§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<&'p TS>)> + Clone,
TS: ToString + '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_form_urlencoded<RQ, RS>( &self, method_relative_uri: &str, request: &RQ, rate_control_params: Option<&'a SlackApiMethodRateControlConfig> ) -> ClientResult<RS>
pub async fn http_post_multipart<'p, RS, PT, TS>(
&self,
method_relative_uri: &str,
file_name: String,
file_content_type: String,
file_content: &'p [u8],
params: &'p PT,
rate_control_params: Option<&'a SlackApiMethodRateControlConfig>
) -> ClientResult<RS>where
PT: IntoIterator<Item = (&'p str, Option<&'p TS>)> + Clone,
RS: for<'de> Deserialize<'de> + Send,
TS: ToString + 'p + Send,
Trait Implementations§
Auto Trait Implementations§
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