#[non_exhaustive]pub struct ResponseStatic<F: StaticProfileField> {
pub value: Option<F::Value>,
}Available on crate features
client or server 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_inner(
response: Response<&[u8]>,
) -> Result<Self, DeserializationError>
fn try_from_http_response_inner( response: Response<&[u8]>, ) -> Result<Self, DeserializationError>
Tries to convert the given
http::Response into this response type. Read moreAuto 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> UnsafeUnpin 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> DropFlavorWrapper<T> for T
impl<T> DropFlavorWrapper<T> for T
Source§impl<T, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
Source§impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
Source§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
Source§impl<T> IncomingResponseExt for Twhere
T: IncomingResponse,
impl<T> IncomingResponseExt for Twhere
T: IncomingResponse,
Source§fn try_from_http_response(
response: Response<&[u8]>,
) -> Result<Self, FromHttpResponseError<Self::EndpointError>>
fn try_from_http_response( response: Response<&[u8]>, ) -> Result<Self, FromHttpResponseError<Self::EndpointError>>
Tries to convert the given
http::Response into this response type.