Trait matrix_sdk::ruma::api::OutgoingRequestAppserviceExt
source · pub trait OutgoingRequestAppserviceExt: OutgoingRequest {
// Provided method
fn try_into_http_request_with_user_id<T>(
self,
base_url: &str,
access_token: SendAccessToken<'_>,
user_id: &UserId,
considering_versions: &[MatrixVersion],
) -> Result<Request<T>, IntoHttpError>
where T: Default + BufMut { ... }
}
Available on crate feature
api
only.Expand description
An extension to OutgoingRequest
which provides Appservice specific methods.
Provided Methods§
sourcefn try_into_http_request_with_user_id<T>(
self,
base_url: &str,
access_token: SendAccessToken<'_>,
user_id: &UserId,
considering_versions: &[MatrixVersion],
) -> Result<Request<T>, IntoHttpError>
fn try_into_http_request_with_user_id<T>( self, base_url: &str, access_token: SendAccessToken<'_>, user_id: &UserId, considering_versions: &[MatrixVersion], ) -> Result<Request<T>, IntoHttpError>
Tries to convert this request into an http::Request
and appends a virtual user_id
to
assert Appservice identity.
Object Safety§
This trait is not object safe.