#[non_exhaustive]pub struct ResponseStatic<F: StaticProfileField> {
pub value: Option<F::Value>,
}
Available on (crate features
client
or server
) and crate feature unstable-msc4133
only.Expand description
Response 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.value: Option<F::Value>
The value of the profile field, if it is set.
Trait Implementations§
Source§impl<F: StaticProfileField> Clone for ResponseStatic<F>
impl<F: StaticProfileField> Clone for ResponseStatic<F>
Source§impl<F: Debug + StaticProfileField> Debug for ResponseStatic<F>
impl<F: Debug + StaticProfileField> Debug for ResponseStatic<F>
Source§impl<F: StaticProfileField> IncomingResponse for ResponseStatic<F>
Available on crate feature client
only.
impl<F: StaticProfileField> IncomingResponse for ResponseStatic<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§fn try_from_http_response<T: AsRef<[u8]>>(
response: Response<T>,
) -> Result<Self, FromHttpResponseError<Self::EndpointError>>
fn try_from_http_response<T: AsRef<[u8]>>( response: Response<T>, ) -> Result<Self, FromHttpResponseError<Self::EndpointError>>
Tries to convert the given
http::Response
into this response type.Auto Trait Implementations§
impl<F> Freeze for ResponseStatic<F>
impl<F> RefUnwindSafe for ResponseStatic<F>
impl<F> Send for ResponseStatic<F>
impl<F> Sync for ResponseStatic<F>
impl<F> Unpin for ResponseStatic<F>
impl<F> UnwindSafe for ResponseStatic<F>
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