Struct matrix_appservice_rs::RequestBuilder [−][src]
pub struct RequestBuilder<'a, C, R> where
C: HttpClient,
R: OutgoingRequest, { /* fields omitted */ }
Expand description
A builder for a request to the Matrix homeserver.
Implementations
Create a new RequestBuilder
, with the given Client
and the given request
.
Set the user_id
url parameter, returning the current builder to allow method chaining.
Set the ts
url parameter, returning the current builder to allow method chaining.
Set the access_token
url parameter, returning the current builder to allow method
chaining.
Submit the request, waiting on the response. This will consume the current builder.
Trait Implementations
impl<'a, C: Clone, R: Clone> Clone for RequestBuilder<'a, C, R> where
C: HttpClient,
R: OutgoingRequest,
[src]
impl<'a, C: Clone, R: Clone> Clone for RequestBuilder<'a, C, R> where
C: HttpClient,
R: OutgoingRequest,
[src]Auto Trait Implementations
impl<'a, C, R> RefUnwindSafe for RequestBuilder<'a, C, R> where
C: RefUnwindSafe,
R: RefUnwindSafe,
impl<'a, C, R> Send for RequestBuilder<'a, C, R> where
C: Send,
R: Send,
impl<'a, C, R> Sync for RequestBuilder<'a, C, R> where
C: Send,
R: Sync,
impl<'a, C, R> Unpin for RequestBuilder<'a, C, R> where
R: Unpin,
impl<'a, C, R> UnwindSafe for RequestBuilder<'a, C, R> where
C: RefUnwindSafe,
R: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
pub fn vzip(self) -> V