[−]Trait matrix_sdk_common::OutgoingRequest
A request type for a Matrix API endpoint. (trait used for sending requests)
Associated Types
type EndpointError: EndpointError
A type capturing the expected error conditions the server can return.
type IncomingResponse: TryFrom<Response<Vec<u8, Global>>>
Response type returned when the request is successful.
Associated Constants
pub const METADATA: Metadata
Metadata about the endpoint.
Required methods
pub fn try_into_http_request(
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
Tries to convert this request into an http::Request.
This method should only fail when called on endpoints that require authentication. It may also fail with a serialization error in case of bugs in Ruma though.
The endpoints path will be appended to the given base_url, for example
https://matrix.org. Since all paths begin with a slash, it is not necessary for the
base_url to have a trailing slash. If it has one however, it will be ignored.
Implementations on Foreign Types
impl<'a> OutgoingRequest for Request<'a>
type EndpointError = Error
type IncomingResponse = <Response as Outgoing>::Incoming
pub const METADATA: Metadata
Metadata for the set_pushrule_actions API endpoint.
pub fn try_into_http_request(
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
impl OutgoingRequest for Request
type EndpointError = Error
type IncomingResponse = <Response as Outgoing>::Incoming
pub const METADATA: Metadata
Metadata for the claim_keys API endpoint.
pub fn try_into_http_request(
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
impl<'a> OutgoingRequest for Request<'a>
type EndpointError = Error
type IncomingResponse = <Response as Outgoing>::Incoming
pub const METADATA: Metadata
Metadata for the request_3pid_association_token_via_msisdn API endpoint.
pub fn try_into_http_request(
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
impl<'a> OutgoingRequest for Request<'a>
type EndpointError = Error
type IncomingResponse = <Response as Outgoing>::Incoming
pub const METADATA: Metadata
Metadata for the create_tag API endpoint.
pub fn try_into_http_request(
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
impl<'a> OutgoingRequest for Request<'a>
type EndpointError = Error
type IncomingResponse = <Response as Outgoing>::Incoming
pub const METADATA: Metadata
Metadata for the set_read_marker API endpoint.
pub fn try_into_http_request(
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
impl<'a> OutgoingRequest for Request<'a>
type EndpointError = UiaaResponse
type IncomingResponse = <Response as Outgoing>::Incoming
pub const METADATA: Metadata
Metadata for the upload_signing_keys API endpoint.
pub fn try_into_http_request(
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
impl<'a> OutgoingRequest for Request<'a>
type EndpointError = Error
type IncomingResponse = <Response as Outgoing>::Incoming
pub const METADATA: Metadata
Metadata for the get_content_thumbnail API endpoint.
pub fn try_into_http_request(
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
impl OutgoingRequest for Request
type EndpointError = Error
type IncomingResponse = <Response as Outgoing>::Incoming
pub const METADATA: Metadata
Metadata for the get_login_types API endpoint.
pub fn try_into_http_request(
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
impl<'a> OutgoingRequest for Request<'a>
type EndpointError = Error
type IncomingResponse = <Response as Outgoing>::Incoming
pub const METADATA: Metadata
Metadata for the request_3pid_association_token_via_email API endpoint.
pub fn try_into_http_request(
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
impl OutgoingRequest for Request
type EndpointError = Error
type IncomingResponse = <Response as Outgoing>::Incoming
pub const METADATA: Metadata
Metadata for the discover_homeserver API endpoint.
pub fn try_into_http_request(
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
impl<'a> OutgoingRequest for Request<'a>
type EndpointError = Error
type IncomingResponse = <Response as Outgoing>::Incoming
pub const METADATA: Metadata
Metadata for the get_room_event API endpoint.
pub fn try_into_http_request(
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
impl<'a> OutgoingRequest for Request<'a>
type EndpointError = Error
type IncomingResponse = <Response as Outgoing>::Incoming
pub const METADATA: Metadata
Metadata for the create_room API endpoint.
pub fn try_into_http_request(
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
impl<'a> OutgoingRequest for Request<'a>
type EndpointError = Error
type IncomingResponse = <Response as Outgoing>::Incoming
pub const METADATA: Metadata
Metadata for the get_state_events API endpoint.
pub fn try_into_http_request(
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
impl<'a> OutgoingRequest for Request<'a>
type EndpointError = Error
type IncomingResponse = <Response as Outgoing>::Incoming
pub const METADATA: Metadata
Metadata for the invite_user API endpoint.
pub fn try_into_http_request(
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
impl<'a> OutgoingRequest for Request<'a>
type EndpointError = Error
type IncomingResponse = <Response as Outgoing>::Incoming
pub const METADATA: Metadata
Metadata for the get_location_for_room_alias API endpoint.
pub fn try_into_http_request(
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
impl<'a> OutgoingRequest for Request<'a>
type EndpointError = Error
type IncomingResponse = <Response as Outgoing>::Incoming
pub const METADATA: Metadata
Metadata for the get_media_preview API endpoint.
pub fn try_into_http_request(
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
impl<'a> OutgoingRequest for Request<'a>
type EndpointError = UiaaResponse
type IncomingResponse = <Response as Outgoing>::Incoming
pub const METADATA: Metadata
Metadata for the register API endpoint.
pub fn try_into_http_request(
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
impl<'a> OutgoingRequest for Request<'a>
type EndpointError = Error
type IncomingResponse = <Response as Outgoing>::Incoming
pub const METADATA: Metadata
Metadata for the get_alias API endpoint.
pub fn try_into_http_request(
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
impl<'a> OutgoingRequest for Request<'a>
type EndpointError = Error
type IncomingResponse = <Response as Outgoing>::Incoming
pub const METADATA: Metadata
Metadata for the search_users API endpoint.
pub fn try_into_http_request(
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
impl<'a> OutgoingRequest for Request<'a>
type EndpointError = Error
type IncomingResponse = <Response as Outgoing>::Incoming
pub const METADATA: Metadata
Metadata for the login API endpoint.
pub fn try_into_http_request(
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
impl<'a> OutgoingRequest for Request<'a>
type EndpointError = Error
type IncomingResponse = <Response as Outgoing>::Incoming
pub const METADATA: Metadata
Metadata for the get_media_content API endpoint.
pub fn try_into_http_request(
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
impl<'a> OutgoingRequest for Request<'a>
type EndpointError = Error
type IncomingResponse = <Response as Outgoing>::Incoming
pub const METADATA: Metadata
Metadata for the send_event_to_device API endpoint.
pub fn try_into_http_request(
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
impl<'a> OutgoingRequest for Request<'a>
type EndpointError = Error
type IncomingResponse = <Response as Outgoing>::Incoming
pub const METADATA: Metadata
Metadata for the get_pushrule_enabled API endpoint.
pub fn try_into_http_request(
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
impl<'a> OutgoingRequest for Request<'a>
type EndpointError = Error
type IncomingResponse = <Response as Outgoing>::Incoming
pub const METADATA: Metadata
Metadata for the kick_user API endpoint.
pub fn try_into_http_request(
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
impl<'a> OutgoingRequest for Request<'a>
type EndpointError = Error
type IncomingResponse = <Response as Outgoing>::Incoming
pub const METADATA: Metadata
Metadata for the unban_user API endpoint.
pub fn try_into_http_request(
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
impl<'a> OutgoingRequest for Request<'a>
type EndpointError = Error
type IncomingResponse = <Response as Outgoing>::Incoming
pub const METADATA: Metadata
Metadata for the join_room_by_id_or_alias API endpoint.
pub fn try_into_http_request(
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
impl<'a> OutgoingRequest for Request<'a>
type EndpointError = Error
type IncomingResponse = <Response as Outgoing>::Incoming
pub const METADATA: Metadata
Metadata for the get_public_rooms API endpoint.
pub fn try_into_http_request(
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
impl<'a> OutgoingRequest for Request<'a>
type EndpointError = Error
type IncomingResponse = <Response as Outgoing>::Incoming
pub const METADATA: Metadata
Metadata for the get_global_account_data API endpoint.
pub fn try_into_http_request(
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
impl<'a> OutgoingRequest for Request<'a>
type EndpointError = Error
type IncomingResponse = <Response as Outgoing>::Incoming
pub const METADATA: Metadata
Metadata for the get_backup_keys API endpoint.
pub fn try_into_http_request(
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
impl<'a> OutgoingRequest for Request<'a>
type EndpointError = Error
type IncomingResponse = <Response as Outgoing>::Incoming
pub const METADATA: Metadata
Metadata for the create_receipt API endpoint.
pub fn try_into_http_request(
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
impl<'a> OutgoingRequest for Request<'a>
type EndpointError = Error
type IncomingResponse = <Response as Outgoing>::Incoming
pub const METADATA: Metadata
Metadata for the set_room_visibility API endpoint.
pub fn try_into_http_request(
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
impl<'a> OutgoingRequest for Request<'a>
type EndpointError = Error
type IncomingResponse = <Response as Outgoing>::Incoming
pub const METADATA: Metadata
Metadata for the set_pushrule_enabled API endpoint.
pub fn try_into_http_request(
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
impl<'a> OutgoingRequest for Request<'a>
type EndpointError = Error
type IncomingResponse = <Response as Outgoing>::Incoming
pub const METADATA: Metadata
Metadata for the delete_backup_key_session API endpoint.
pub fn try_into_http_request(
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
impl OutgoingRequest for Request
type EndpointError = Error
type IncomingResponse = <Response as Outgoing>::Incoming
pub const METADATA: Metadata
Metadata for the get_contacts API endpoint.
pub fn try_into_http_request(
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
impl<'a> OutgoingRequest for Request<'a>
type EndpointError = Error
type IncomingResponse = <Response as Outgoing>::Incoming
pub const METADATA: Metadata
Metadata for the get_protocol API endpoint.
pub fn try_into_http_request(
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
impl<'a> OutgoingRequest for Request<'a>
type EndpointError = Error
type IncomingResponse = <Response as Outgoing>::Incoming
pub const METADATA: Metadata
Metadata for the get_context API endpoint.
pub fn try_into_http_request(
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
impl<'a> OutgoingRequest for Request<'a>
type EndpointError = Error
type IncomingResponse = <Response as Outgoing>::Incoming
pub const METADATA: Metadata
Metadata for the sso_login API endpoint.
pub fn try_into_http_request(
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
impl<'a> OutgoingRequest for Request<'a>
type EndpointError = Error
type IncomingResponse = <Response as Outgoing>::Incoming
pub const METADATA: Metadata
Metadata for the joined_members API endpoint.
pub fn try_into_http_request(
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
impl<'a> OutgoingRequest for Request<'a>
type EndpointError = Error
type IncomingResponse = <Response as Outgoing>::Incoming
pub const METADATA: Metadata
Metadata for the create_alias API endpoint.
pub fn try_into_http_request(
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
impl<'a> OutgoingRequest for Request<'a>
type EndpointError = Error
type IncomingResponse = <Response as Outgoing>::Incoming
pub const METADATA: Metadata
Metadata for the upgrade_room API endpoint.
pub fn try_into_http_request(
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
impl OutgoingRequest for Request
type EndpointError = Error
type IncomingResponse = <Response as Outgoing>::Incoming
pub const METADATA: Metadata
Metadata for the whoami API endpoint.
pub fn try_into_http_request(
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
impl OutgoingRequest for Request
type EndpointError = Error
type IncomingResponse = <Response as Outgoing>::Incoming
pub const METADATA: Metadata
Metadata for the create_backup API endpoint.
pub fn try_into_http_request(
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
impl<'a> OutgoingRequest for Request<'a>
type EndpointError = Error
type IncomingResponse = <Response as Outgoing>::Incoming
pub const METADATA: Metadata
Metadata for the ban_user API endpoint.
pub fn try_into_http_request(
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
impl<'a> OutgoingRequest for Request<'a>
type EndpointError = Error
type IncomingResponse = <Response as Outgoing>::Incoming
pub const METADATA: Metadata
Metadata for the get_user_for_user_id API endpoint.
pub fn try_into_http_request(
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
impl<'a> OutgoingRequest for Request<'a>
type EndpointError = Error
type IncomingResponse = <Response as Outgoing>::Incoming
pub const METADATA: Metadata
Metadata for the set_presence API endpoint.
pub fn try_into_http_request(
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
impl<'a> OutgoingRequest for Request<'a>
type EndpointError = Error
type IncomingResponse = <Response as Outgoing>::Incoming
pub const METADATA: Metadata
Metadata for the create_media_content API endpoint.
pub fn try_into_http_request(
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
impl<'a> OutgoingRequest for Request<'a>
type EndpointError = Error
type IncomingResponse = <Response as Outgoing>::Incoming
pub const METADATA: Metadata
Metadata for the get_presence API endpoint.
pub fn try_into_http_request(
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
impl OutgoingRequest for Request
type EndpointError = Error
type IncomingResponse = <Response as Outgoing>::Incoming
pub const METADATA: Metadata
Metadata for the logout_all API endpoint.
pub fn try_into_http_request(
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
impl<'a> OutgoingRequest for Request<'a>
type EndpointError = Error
type IncomingResponse = <Response as Outgoing>::Incoming
pub const METADATA: Metadata
Metadata for the get_pushrule API endpoint.
pub fn try_into_http_request(
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
impl<'a> OutgoingRequest for Request<'a>
type EndpointError = Error
type IncomingResponse = <Response as Outgoing>::Incoming
pub const METADATA: Metadata
Metadata for the set_display_name API endpoint.
pub fn try_into_http_request(
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
impl OutgoingRequest for Request
type EndpointError = Error
type IncomingResponse = <Response as Outgoing>::Incoming
pub const METADATA: Metadata
Metadata for the logout API endpoint.
pub fn try_into_http_request(
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
impl OutgoingRequest for Request
type EndpointError = Error
type IncomingResponse = <Response as Outgoing>::Incoming
pub const METADATA: Metadata
Metadata for the set_pusher API endpoint.
pub fn try_into_http_request(
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
impl<'a> OutgoingRequest for Request<'a>
type EndpointError = Error
type IncomingResponse = <Response as Outgoing>::Incoming
pub const METADATA: Metadata
Metadata for the report_content API endpoint.
pub fn try_into_http_request(
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
impl<'a> OutgoingRequest for Request<'a>
type EndpointError = Error
type IncomingResponse = <Response as Outgoing>::Incoming
pub const METADATA: Metadata
Metadata for the get_state_events_for_empty_key API endpoint.
pub fn try_into_http_request(
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
impl<'a> OutgoingRequest for Request<'a>
type EndpointError = Error
type IncomingResponse = <Response as Outgoing>::Incoming
pub const METADATA: Metadata
Metadata for the join_room_by_id API endpoint.
pub fn try_into_http_request(
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
impl OutgoingRequest for Request
type EndpointError = Error
type IncomingResponse = <Response as Outgoing>::Incoming
pub const METADATA: Metadata
Metadata for the get_media_config API endpoint.
pub fn try_into_http_request(
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
impl<'a> OutgoingRequest for Request<'a>
type EndpointError = Error
type IncomingResponse = <Response as Outgoing>::Incoming
pub const METADATA: Metadata
Metadata for the delete_pushrule API endpoint.
pub fn try_into_http_request(
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
impl<'a> OutgoingRequest for Request<'a>
type EndpointError = Error
type IncomingResponse = <Response as Outgoing>::Incoming
pub const METADATA: Metadata
Metadata for the get_backup_key_sessions API endpoint.
pub fn try_into_http_request(
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
impl OutgoingRequest for Request
type EndpointError = Error
type IncomingResponse = <Response as Outgoing>::Incoming
pub const METADATA: Metadata
Metadata for the get_pushrules_global_scope API endpoint.
pub fn try_into_http_request(
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
impl<'a> OutgoingRequest for Request<'a>
type EndpointError = Error
type IncomingResponse = <Response as Outgoing>::Incoming
pub const METADATA: Metadata
Metadata for the get_key_changes API endpoint.
pub fn try_into_http_request(
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
impl<'a> OutgoingRequest for Request<'a>
type EndpointError = Error
type IncomingResponse = <Response as Outgoing>::Incoming
pub const METADATA: Metadata
Metadata for the get_tags API endpoint.
pub fn try_into_http_request(
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
impl<'a> OutgoingRequest for Request<'a>
type EndpointError = UiaaResponse
type IncomingResponse = <Response as Outgoing>::Incoming
pub const METADATA: Metadata
Metadata for the deactivate API endpoint.
pub fn try_into_http_request(
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
impl<'a> OutgoingRequest for Request<'a>
type EndpointError = Error
type IncomingResponse = <Response as Outgoing>::Incoming
pub const METADATA: Metadata
Metadata for the request_password_change_token_via_msisdn API endpoint.
pub fn try_into_http_request(
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
impl<'a> OutgoingRequest for Request<'a>
type EndpointError = Error
type IncomingResponse = <Response as Outgoing>::Incoming
pub const METADATA: Metadata
Metadata for the get_device API endpoint.
pub fn try_into_http_request(
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
impl OutgoingRequest for Request
type EndpointError = Error
type IncomingResponse = <Response as Outgoing>::Incoming
pub const METADATA: Metadata
Metadata for the get_pushrules_all API endpoint.
pub fn try_into_http_request(
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
impl<'a> OutgoingRequest for Request<'a>
type EndpointError = Error
type IncomingResponse = <Response as Outgoing>::Incoming
pub const METADATA: Metadata
Metadata for the get_media_content_as_filename API endpoint.
pub fn try_into_http_request(
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
impl<'a> OutgoingRequest for Request<'a>
type EndpointError = Error
type IncomingResponse = Response
pub const METADATA: Metadata
Metadata for the send_message_event endpoint.
pub fn try_into_http_request(
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
impl<'a> OutgoingRequest for Request<'a>
type EndpointError = Error
type IncomingResponse = <Response as Outgoing>::Incoming
pub const METADATA: Metadata
Metadata for the delete_tag API endpoint.
pub fn try_into_http_request(
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
impl<'a> OutgoingRequest for Request<'a>
type EndpointError = Error
type IncomingResponse = <Response as Outgoing>::Incoming
pub const METADATA: Metadata
Metadata for the update_backup API endpoint.
pub fn try_into_http_request(
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
impl<'a> OutgoingRequest for Request<'a>
type EndpointError = Error
type IncomingResponse = <Response as Outgoing>::Incoming
pub const METADATA: Metadata
Metadata for the get_profile API endpoint.
pub fn try_into_http_request(
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
impl<'a> OutgoingRequest for Request<'a>
type EndpointError = Error
type IncomingResponse = <Response as Outgoing>::Incoming
pub const METADATA: Metadata
Metadata for the search API endpoint.
pub fn try_into_http_request(
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
impl<'a> OutgoingRequest for Request<'a>
type EndpointError = Error
type IncomingResponse = <Response as Outgoing>::Incoming
pub const METADATA: Metadata
Metadata for the get_notifications API endpoint.
pub fn try_into_http_request(
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
impl<'a> OutgoingRequest for Request<'a>
type EndpointError = Error
type IncomingResponse = <Response as Outgoing>::Incoming
pub const METADATA: Metadata
Metadata for the set_room_account_data API endpoint.
pub fn try_into_http_request(
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
impl<'a> OutgoingRequest for Request<'a>
type EndpointError = Error
type IncomingResponse = <Response as Outgoing>::Incoming
pub const METADATA: Metadata
Metadata for the add_backup_key_session API endpoint.
pub fn try_into_http_request(
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
impl OutgoingRequest for Request
type EndpointError = Error
type IncomingResponse = <Response as Outgoing>::Incoming
pub const METADATA: Metadata
Metadata for the upload_keys API endpoint.
pub fn try_into_http_request(
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
impl<'a> OutgoingRequest for Request<'a>
type EndpointError = Error
type IncomingResponse = <Response as Outgoing>::Incoming
pub const METADATA: Metadata
Metadata for the leave_room API endpoint.
pub fn try_into_http_request(
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
impl<'a> OutgoingRequest for Request<'a>
type EndpointError = UiaaResponse
type IncomingResponse = <Response as Outgoing>::Incoming
pub const METADATA: Metadata
Metadata for the change_password API endpoint.
pub fn try_into_http_request(
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
impl<'a> OutgoingRequest for Request<'a>
type EndpointError = Error
type IncomingResponse = <Response as Outgoing>::Incoming
pub const METADATA: Metadata
Metadata for the get_display_name API endpoint.
pub fn try_into_http_request(
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
impl OutgoingRequest for Request
type EndpointError = Error
type IncomingResponse = <Response as Outgoing>::Incoming
pub const METADATA: Metadata
Metadata for the get_devices API endpoint.
pub fn try_into_http_request(
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
impl<'a> OutgoingRequest for Request<'a>
type EndpointError = Error
type IncomingResponse = <Response as Outgoing>::Incoming
pub const METADATA: Metadata
Metadata for the delete_backup_key_sessions API endpoint.
pub fn try_into_http_request(
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
impl<'a> OutgoingRequest for Request<'a>
type EndpointError = Error
type IncomingResponse = <Response as Outgoing>::Incoming
pub const METADATA: Metadata
Metadata for the request_openid_token API endpoint.
pub fn try_into_http_request(
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
impl<'a> OutgoingRequest for Request<'a>
type EndpointError = Error
type IncomingResponse = <Response as Outgoing>::Incoming
pub const METADATA: Metadata
Metadata for the sync API endpoint.
pub fn try_into_http_request(
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
impl<'a> OutgoingRequest for Request<'a>
type EndpointError = Error
type IncomingResponse = <Response as Outgoing>::Incoming
pub const METADATA: Metadata
Metadata for the add_backup_keys API endpoint.
pub fn try_into_http_request(
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
impl<'a> OutgoingRequest for Request<'a>
type EndpointError = Error
type IncomingResponse = <Response as Outgoing>::Incoming
pub const METADATA: Metadata
Metadata for the get_user_info API endpoint.
pub fn try_into_http_request(
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
impl<'a> OutgoingRequest for Request<'a>
type EndpointError = Error
type IncomingResponse = <Response as Outgoing>::Incoming
pub const METADATA: Metadata
Metadata for the get_state_events_for_key API endpoint.
pub fn try_into_http_request(
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
impl<'a> OutgoingRequest for Request<'a>
type EndpointError = Error
type IncomingResponse = <Response as Outgoing>::Incoming
pub const METADATA: Metadata
Metadata for the request_registration_token_via_email API endpoint.
pub fn try_into_http_request(
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
impl<'a> OutgoingRequest for Request<'a>
type EndpointError = Error
type IncomingResponse = <Response as Outgoing>::Incoming
pub const METADATA: Metadata
Metadata for the get_keys API endpoint.
pub fn try_into_http_request(
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
impl<'a> OutgoingRequest for Request<'a>
type EndpointError = Error
type IncomingResponse = <Response as Outgoing>::Incoming
pub const METADATA: Metadata
Metadata for the get_message_events API endpoint.
pub fn try_into_http_request(
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
impl<'a> OutgoingRequest for Request<'a>
type EndpointError = Error
type IncomingResponse = <Response as Outgoing>::Incoming
pub const METADATA: Metadata
Metadata for the create_filter API endpoint.
pub fn try_into_http_request(
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
impl<'a> OutgoingRequest for Request<'a>
type EndpointError = Error
type IncomingResponse = <Response as Outgoing>::Incoming
pub const METADATA: Metadata
Metadata for the set_global_account_data API endpoint.
pub fn try_into_http_request(
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
impl<'a> OutgoingRequest for Request<'a>
type EndpointError = Error
type IncomingResponse = <Response as Outgoing>::Incoming
pub const METADATA: Metadata
Metadata for the create_typing_event API endpoint.
pub fn try_into_http_request(
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
impl<'a> OutgoingRequest for Request<'a>
type EndpointError = Error
type IncomingResponse = <Response as Outgoing>::Incoming
pub const METADATA: Metadata
Metadata for the get_room_account_data API endpoint.
pub fn try_into_http_request(
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
impl OutgoingRequest for Request
type EndpointError = Error
type IncomingResponse = <Response as Outgoing>::Incoming
pub const METADATA: Metadata
Metadata for the turn_server_info API endpoint.
pub fn try_into_http_request(
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
impl<'a> OutgoingRequest for Request<'a>
type EndpointError = Error
type IncomingResponse = Response
pub const METADATA: Metadata
Metadata for the send_message_event endpoint.
pub fn try_into_http_request(
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
impl<'a> OutgoingRequest for Request<'a>
type EndpointError = UiaaResponse
type IncomingResponse = <Response as Outgoing>::Incoming
pub const METADATA: Metadata
Metadata for the add_3pid API endpoint.
pub fn try_into_http_request(
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
impl<'a> OutgoingRequest for Request<'a>
type EndpointError = Error
type IncomingResponse = <Response as Outgoing>::Incoming
pub const METADATA: Metadata
Metadata for the update_device API endpoint.
pub fn try_into_http_request(
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
impl<'a> OutgoingRequest for Request<'a>
type EndpointError = Error
type IncomingResponse = <Response as Outgoing>::Incoming
pub const METADATA: Metadata
Metadata for the get_member_events API endpoint.
pub fn try_into_http_request(
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
impl<'a> OutgoingRequest for Request<'a>
type EndpointError = Error
type IncomingResponse = <Response as Outgoing>::Incoming
pub const METADATA: Metadata
Metadata for the redact_event API endpoint.
pub fn try_into_http_request(
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
impl<'a> OutgoingRequest for Request<'a>
type EndpointError = Error
type IncomingResponse = <Response as Outgoing>::Incoming
pub const METADATA: Metadata
Metadata for the get_public_rooms_filtered API endpoint.
pub fn try_into_http_request(
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
impl OutgoingRequest for Request
type EndpointError = Error
type IncomingResponse = <Response as Outgoing>::Incoming
pub const METADATA: Metadata
Metadata for the joined_rooms API endpoint.
pub fn try_into_http_request(
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
impl<'a> OutgoingRequest for Request<'a>
type EndpointError = UiaaResponse
type IncomingResponse = <Response as Outgoing>::Incoming
pub const METADATA: Metadata
Metadata for the delete_devices API endpoint.
pub fn try_into_http_request(
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
impl<'a> OutgoingRequest for Request<'a>
type EndpointError = Error
type IncomingResponse = <Response as Outgoing>::Incoming
pub const METADATA: Metadata
Metadata for the delete_3pid API endpoint.
pub fn try_into_http_request(
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
impl<'a> OutgoingRequest for Request<'a>
type EndpointError = Error
type IncomingResponse = <Response as Outgoing>::Incoming
pub const METADATA: Metadata
Metadata for the unbind_3pid API endpoint.
pub fn try_into_http_request(
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
impl<'a> OutgoingRequest for Request<'a>
type EndpointError = Error
type IncomingResponse = <Response as Outgoing>::Incoming
pub const METADATA: Metadata
Metadata for the delete_backup_keys API endpoint.
pub fn try_into_http_request(
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
impl<'a> OutgoingRequest for Request<'a>
type EndpointError = Error
type IncomingResponse = <Response as Outgoing>::Incoming
pub const METADATA: Metadata
Metadata for the request_registration_token_via_msisdn API endpoint.
pub fn try_into_http_request(
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
impl<'a> OutgoingRequest for Request<'a>
type EndpointError = Error
type IncomingResponse = <Response as Outgoing>::Incoming
pub const METADATA: Metadata
Metadata for the get_pushrule_actions API endpoint.
pub fn try_into_http_request(
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
impl<'a> OutgoingRequest for Request<'a>
type EndpointError = Error
type IncomingResponse = <Response as Outgoing>::Incoming
pub const METADATA: Metadata
Metadata for the get_backup API endpoint.
pub fn try_into_http_request(
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
impl<'a> OutgoingRequest for Request<'a>
type EndpointError = Error
type IncomingResponse = <Response as Outgoing>::Incoming
pub const METADATA: Metadata
Metadata for the get_filter API endpoint.
pub fn try_into_http_request(
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
impl OutgoingRequest for Request
type EndpointError = Error
type IncomingResponse = <Response as Outgoing>::Incoming
pub const METADATA: Metadata
Metadata for the get_latest_backup API endpoint.
pub fn try_into_http_request(
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
impl<'a> OutgoingRequest for Request<'a>
type EndpointError = UiaaResponse
type IncomingResponse = <Response as Outgoing>::Incoming
pub const METADATA: Metadata
Metadata for the delete_device API endpoint.
pub fn try_into_http_request(
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
impl<'a> OutgoingRequest for Request<'a>
type EndpointError = Error
type IncomingResponse = <Response as Outgoing>::Incoming
pub const METADATA: Metadata
Metadata for the bind_3pid API endpoint.
pub fn try_into_http_request(
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
impl<'a> OutgoingRequest for Request<'a>
type EndpointError = Error
type IncomingResponse = <Response as Outgoing>::Incoming
pub const METADATA: Metadata
Metadata for the request_password_change_token_via_email API endpoint.
pub fn try_into_http_request(
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
impl<'a> OutgoingRequest for Request<'a>
type EndpointError = Error
type IncomingResponse = <Response as Outgoing>::Incoming
pub const METADATA: Metadata
Metadata for the set_pushrule API endpoint.
pub fn try_into_http_request(
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
impl<'a> OutgoingRequest for Request<'a>
type EndpointError = Error
type IncomingResponse = <Response as Outgoing>::Incoming
pub const METADATA: Metadata
Metadata for the set_room_visibility API endpoint.
pub fn try_into_http_request(
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
impl<'a> OutgoingRequest for Request<'a>
type EndpointError = Error
type IncomingResponse = <Response as Outgoing>::Incoming
pub const METADATA: Metadata
Metadata for the get_username_availability API endpoint.
pub fn try_into_http_request(
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
impl<'a> OutgoingRequest for Request<'a>
type EndpointError = Error
type IncomingResponse = <Response as Outgoing>::Incoming
pub const METADATA: Metadata
Metadata for the get_backup_key_session API endpoint.
pub fn try_into_http_request(
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
impl<'a> OutgoingRequest for Request<'a>
type EndpointError = Error
type IncomingResponse = Response
pub const METADATA: Metadata
Metadata for the send_message_event endpoint.
pub fn try_into_http_request(
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
impl<'a> OutgoingRequest for Request<'a>
type EndpointError = Error
type IncomingResponse = <Response as Outgoing>::Incoming
pub const METADATA: Metadata
Metadata for the get_user_for_protocol API endpoint.
pub fn try_into_http_request(
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
impl<'a> OutgoingRequest for Request<'a>
type EndpointError = Error
type IncomingResponse = <Response as Outgoing>::Incoming
pub const METADATA: Metadata
Metadata for the request_contact_verification_token API endpoint.
pub fn try_into_http_request(
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
impl<'a> OutgoingRequest for Request<'a>
type EndpointError = Error
type IncomingResponse = <Response as Outgoing>::Incoming
pub const METADATA: Metadata
Metadata for the delete_backup API endpoint.
pub fn try_into_http_request(
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
impl OutgoingRequest for Request
type EndpointError = Error
type IncomingResponse = <Response as Outgoing>::Incoming
pub const METADATA: Metadata
Metadata for the get_pushers API endpoint.
pub fn try_into_http_request(
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
impl OutgoingRequest for Request
type EndpointError = Error
type IncomingResponse = <Response as Outgoing>::Incoming
pub const METADATA: Metadata
Metadata for the api_versions API endpoint.
pub fn try_into_http_request(
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
impl OutgoingRequest for Request
type EndpointError = Error
type IncomingResponse = <Response as Outgoing>::Incoming
pub const METADATA: Metadata
Metadata for the upload_signatures API endpoint.
pub fn try_into_http_request(
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
impl<'a> OutgoingRequest for Request<'a>
type EndpointError = Error
type IncomingResponse = <Response as Outgoing>::Incoming
pub const METADATA: Metadata
Metadata for the add_backup_key_sessions API endpoint.
pub fn try_into_http_request(
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
impl OutgoingRequest for Request
type EndpointError = Error
type IncomingResponse = <Response as Outgoing>::Incoming
pub const METADATA: Metadata
Metadata for the get_capabilities API endpoint.
pub fn try_into_http_request(
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
impl OutgoingRequest for Request
type EndpointError = Error
type IncomingResponse = <Response as Outgoing>::Incoming
pub const METADATA: Metadata
Metadata for the get_protocols API endpoint.
pub fn try_into_http_request(
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
impl<'a> OutgoingRequest for Request<'a>
type EndpointError = Error
type IncomingResponse = <Response as Outgoing>::Incoming
pub const METADATA: Metadata
Metadata for the set_avatar_url API endpoint.
pub fn try_into_http_request(
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
impl<'a> OutgoingRequest for Request<'a>
type EndpointError = Error
type IncomingResponse = <Response as Outgoing>::Incoming
pub const METADATA: Metadata
Metadata for the get_avatar_url API endpoint.
pub fn try_into_http_request(
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
impl<'a> OutgoingRequest for Request<'a>
type EndpointError = Error
type IncomingResponse = <Response as Outgoing>::Incoming
pub const METADATA: Metadata
Metadata for the get_location_for_protocol API endpoint.
pub fn try_into_http_request(
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
impl<'a> OutgoingRequest for Request<'a>
type EndpointError = Error
type IncomingResponse = <Response as Outgoing>::Incoming
pub const METADATA: Metadata
Metadata for the forget_room API endpoint.
pub fn try_into_http_request(
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
impl<'a> OutgoingRequest for Request<'a>
type EndpointError = Error
type IncomingResponse = <Response as Outgoing>::Incoming
pub const METADATA: Metadata
Metadata for the delete_alias API endpoint.
pub fn try_into_http_request(
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
impl<'a> OutgoingRequest for Request<'a>
type EndpointError = Error
type IncomingResponse = <Response as Outgoing>::Incoming
pub const METADATA: Metadata
Metadata for the get_room_visibility API endpoint.
pub fn try_into_http_request(
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>
self,
base_url: &str,
access_token: Option<&str>
) -> Result<Request<Vec<u8, Global>>, IntoHttpError>