#[non_exhaustive]pub struct ResponseStatic<F>where
F: StaticProfileField,{
pub value: Option<<F as StaticProfileField>::Value>,
}
Available on crate feature
api
and (crate features client-api-c
or client-api-s
) 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 as StaticProfileField>::Value>
The value of the profile field, if it is set.
Trait Implementations§
Source§impl<F> Clone for ResponseStatic<F>
impl<F> Clone for ResponseStatic<F>
Source§fn clone(&self) -> ResponseStatic<F>
fn clone(&self) -> ResponseStatic<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 ResponseStatic<F>
impl<F> Debug for ResponseStatic<F>
Source§impl<F> IncomingResponse for ResponseStatic<F>where
F: StaticProfileField,
impl<F> IncomingResponse for ResponseStatic<F>where
F: StaticProfileField,
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>(
response: Response<T>,
) -> Result<ResponseStatic<F>, FromHttpResponseError<<ResponseStatic<F> as IncomingResponse>::EndpointError>>
fn try_from_http_response<T>( response: Response<T>, ) -> Result<ResponseStatic<F>, FromHttpResponseError<<ResponseStatic<F> as IncomingResponse>::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