#[non_exhaustive]pub struct RequestStatic<F>where
    F: StaticProfileField,{
    pub user_id: OwnedUserId,
    /* private fields */
}Available on crate feature 
api and (crate features client-api-c or client-api-s) 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> RequestStatic<F>where
    F: StaticProfileField,
 
impl<F> RequestStatic<F>where
    F: StaticProfileField,
Sourcepub fn new(user_id: OwnedUserId) -> RequestStatic<F>
 
pub fn new(user_id: OwnedUserId) -> RequestStatic<F>
Creates a new request with the given user ID.
Trait Implementations§
Source§impl<F> Clone for RequestStatic<F>where
    F: StaticProfileField,
 
impl<F> Clone for RequestStatic<F>where
    F: StaticProfileField,
Source§fn clone(&self) -> RequestStatic<F>
 
fn clone(&self) -> RequestStatic<F>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from 
source. Read moreSource§impl<F> Debug for RequestStatic<F>where
    F: Debug + StaticProfileField,
 
impl<F> Debug for RequestStatic<F>where
    F: Debug + StaticProfileField,
Source§impl<F> Metadata for RequestStatic<F>where
    F: StaticProfileField,
 
impl<F> Metadata for RequestStatic<F>where
    F: StaticProfileField,
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> OutgoingRequest for RequestStatic<F>where
    F: StaticProfileField,
 
impl<F> OutgoingRequest for RequestStatic<F>where
    F: StaticProfileField,
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>(
    self,
    base_url: &str,
    access_token: SendAccessToken<'_>,
    considering: Cow<'_, SupportedVersions>,
) -> Result<Request<T>, IntoHttpError>
 
fn try_into_http_request<T>( 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