#[non_exhaustive]pub struct RequestStatic<F: StaticProfileField> {
pub user_id: OwnedUserId,
/* private fields */
}Available on crate features
client or server only.Expand description
Request type for the get_profile_field endpoint, using a statically-known field.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.user_id: OwnedUserIdThe user whose profile will be fetched.
Implementations§
Source§impl<F: StaticProfileField> RequestStatic<F>
impl<F: StaticProfileField> RequestStatic<F>
Sourcepub fn new(user_id: OwnedUserId) -> Self
pub fn new(user_id: OwnedUserId) -> Self
Creates a new request with the given user ID.
Trait Implementations§
Source§impl<F: StaticProfileField> Clone for RequestStatic<F>
impl<F: StaticProfileField> Clone for RequestStatic<F>
Source§impl<F: Debug + StaticProfileField> Debug for RequestStatic<F>
impl<F: Debug + StaticProfileField> Debug for RequestStatic<F>
Source§impl<F: StaticProfileField> Metadata for RequestStatic<F>
impl<F: StaticProfileField> Metadata for RequestStatic<F>
Source§const RATE_LIMITED: bool = false
const RATE_LIMITED: bool = false
Whether or not this endpoint is rate limited by the server.
Source§const PATH_BUILDER: VersionHistory = Request::PATH_BUILDER
const PATH_BUILDER: VersionHistory = Request::PATH_BUILDER
All info pertaining to an endpoint’s path.
Source§type Authentication = <Request as Metadata>::Authentication
type Authentication = <Request as Metadata>::Authentication
What authentication scheme the server uses for this endpoint.
Source§type PathBuilder = <Request as Metadata>::PathBuilder
type PathBuilder = <Request as Metadata>::PathBuilder
The type used to build an endpoint’s path.
Source§fn empty_request_body<B>() -> B
fn empty_request_body<B>() -> B
Returns an empty request body for this Matrix request. Read more
Source§fn make_endpoint_url(
path_builder_input: <Self::PathBuilder as PathBuilder>::Input<'_>,
base_url: &str,
path_args: &[&dyn Display],
query_string: &str,
) -> Result<String, IntoHttpError>
fn make_endpoint_url( path_builder_input: <Self::PathBuilder as PathBuilder>::Input<'_>, base_url: &str, path_args: &[&dyn Display], query_string: &str, ) -> Result<String, IntoHttpError>
Generate the endpoint URL for this endpoint.
Source§impl<F: StaticProfileField> OutgoingRequest for RequestStatic<F>
Available on crate feature client only.
impl<F: StaticProfileField> OutgoingRequest for RequestStatic<F>
Available on crate feature
client only.Source§type EndpointError = Error
type EndpointError = Error
A type capturing the expected error conditions the server can return.
Source§type IncomingResponse = ResponseStatic<F>
type IncomingResponse = ResponseStatic<F>
Response type returned when the request is successful.
Source§fn try_into_http_request<T: Default + BufMut + AsRef<[u8]>>(
self,
base_url: &str,
access_token: SendAccessToken<'_>,
considering: Cow<'_, SupportedVersions>,
) -> Result<Request<T>, IntoHttpError>
fn try_into_http_request<T: Default + BufMut + AsRef<[u8]>>( self, base_url: &str, access_token: SendAccessToken<'_>, considering: Cow<'_, SupportedVersions>, ) -> Result<Request<T>, IntoHttpError>
Tries to convert this request into an
http::Request. Read moreAuto Trait Implementations§
impl<F> Freeze for RequestStatic<F>
impl<F> RefUnwindSafe for RequestStatic<F>where
F: RefUnwindSafe,
impl<F> Send for RequestStatic<F>where
F: Send,
impl<F> Sync for RequestStatic<F>where
F: Sync,
impl<F> Unpin for RequestStatic<F>where
F: Unpin,
impl<F> UnwindSafe for RequestStatic<F>where
F: UnwindSafe,
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