Struct slack_morphism::SlackClientHttpSessionApi
source · [−]pub struct SlackClientHttpSessionApi<'a, SCHC> where
SCHC: SlackClientHttpConnector + Send, { /* private fields */ }Implementations
sourceimpl<'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> where
RQ: Serialize + Send + Sync,
RS: for<'de> Deserialize<'de> + Send,
pub async fn http_post_uri<RQ, RS>(
&self,
full_uri: Url,
request: &RQ,
rate_control_params: Option<&'a SlackApiMethodRateControlConfig>
) -> ClientResult<RS> where
RQ: Serialize + Send + Sync,
RS: for<'de> Deserialize<'de> + Send,
Trait Implementations
Auto Trait Implementations
impl<'a, SCHC> RefUnwindSafe for SlackClientHttpSessionApi<'a, SCHC> where
SCHC: RefUnwindSafe,
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> where
SCHC: RefUnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more