Struct Response
#[non_exhaustive]pub struct Response { /* private fields */ }
Expand description
Response type for the get_profile
endpoint.
Implementations§
§impl Response
impl Response
pub fn get_static<F>(
&self,
) -> Result<Option<<F as StaticProfileField>::Value>, Error>where
F: StaticProfileField,
pub fn get_static<F>(
&self,
) -> Result<Option<<F as StaticProfileField>::Value>, Error>where
F: StaticProfileField,
Returns the value of the given StaticProfileField
.
Returns Ok(Some(_))
if the field is present and the value was deserialized
successfully, Ok(None)
if the field is not set, or an error if deserialization of the
value failed.
Trait Implementations§
§impl Extend<(ProfileFieldName, Value)> for Response
impl Extend<(ProfileFieldName, Value)> for Response
Source§fn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
🔬This is a nightly-only experimental API. (
extend_one
)Extends a collection with exactly one element.
Source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
🔬This is a nightly-only experimental API. (
extend_one
)Reserves capacity in a collection for the given number of additional elements. Read more
§impl Extend<(String, Value)> for Response
impl Extend<(String, Value)> for Response
Source§fn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
🔬This is a nightly-only experimental API. (
extend_one
)Extends a collection with exactly one element.
Source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
🔬This is a nightly-only experimental API. (
extend_one
)Reserves capacity in a collection for the given number of additional elements. Read more
§impl Extend<ProfileFieldValue> for Response
impl Extend<ProfileFieldValue> for Response
§fn extend<T>(&mut self, iter: T)where
T: IntoIterator<Item = ProfileFieldValue>,
fn extend<T>(&mut self, iter: T)where
T: IntoIterator<Item = ProfileFieldValue>,
Extends a collection with the contents of an iterator. Read more
Source§fn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
🔬This is a nightly-only experimental API. (
extend_one
)Extends a collection with exactly one element.
Source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
🔬This is a nightly-only experimental API. (
extend_one
)Reserves capacity in a collection for the given number of additional elements. Read more
§impl FromIterator<(ProfileFieldName, Value)> for Response
impl FromIterator<(ProfileFieldName, Value)> for Response
§impl FromIterator<(String, Value)> for Response
impl FromIterator<(String, Value)> for Response
§impl FromIterator<ProfileFieldValue> for Response
impl FromIterator<ProfileFieldValue> for Response
§fn from_iter<T>(iter: T) -> Responsewhere
T: IntoIterator<Item = ProfileFieldValue>,
fn from_iter<T>(iter: T) -> Responsewhere
T: IntoIterator<Item = ProfileFieldValue>,
Creates a value from an iterator. Read more
§impl IncomingResponse for Response
impl IncomingResponse for Response
§type EndpointError = Error
type EndpointError = Error
A type capturing the expected error conditions the server can return.
§fn try_from_http_response<T>(
response: Response<T>,
) -> Result<Response, FromHttpResponseError<Error>>
fn try_from_http_response<T>( response: Response<T>, ) -> Result<Response, FromHttpResponseError<Error>>
Tries to convert the given
http::Response
into this response type.§impl IntoIterator for Response
impl IntoIterator for Response
§impl OutgoingResponse for Response
impl OutgoingResponse for Response
§fn try_into_http_response<T>(self) -> Result<Response<T>, IntoHttpError>
fn try_into_http_response<T>(self) -> Result<Response<T>, IntoHttpError>
Tries to convert this response into an
http::Response
. Read moreAuto Trait Implementations§
impl Freeze for Response
impl RefUnwindSafe for Response
impl Send for Response
impl Sync for Response
impl Unpin for Response
impl UnwindSafe for Response
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,
§impl<T> CompatExt for T
impl<T> CompatExt for T
Source§impl<T, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
Source§fn consume_handle(handle: Handle) -> Arc<T>
fn consume_handle(handle: Handle) -> Arc<T>
Consume a handle, getting back the initial
Arc<>
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,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more