#[non_exhaustive]pub struct Response { /* private fields */ }
Available on crate feature
api
and (crate features client-api-c
or client-api-s
) only.Expand description
Response type for the get_profile
endpoint.
Implementations§
Source§impl Response
impl Response
Sourcepub 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§
Source§impl Extend<(ProfileFieldName, Value)> for Response
impl Extend<(ProfileFieldName, Value)> for Response
Source§fn extend<T>(&mut self, iter: T)
fn extend<T>(&mut self, iter: T)
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
Source§impl Extend<(String, Value)> for Response
impl Extend<(String, Value)> for Response
Source§fn extend<T>(&mut self, iter: T)
fn extend<T>(&mut self, iter: T)
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
Source§impl Extend<ProfileFieldValue> for Response
impl Extend<ProfileFieldValue> for Response
Source§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
Source§impl FromIterator<(ProfileFieldName, Value)> for Response
impl FromIterator<(ProfileFieldName, Value)> for Response
Source§impl FromIterator<ProfileFieldValue> for Response
impl FromIterator<ProfileFieldValue> for Response
Source§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
Source§impl IncomingResponse for Response
impl IncomingResponse for Response
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<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.Source§impl IntoIterator for Response
impl IntoIterator for Response
Source§impl OutgoingResponse for Response
impl OutgoingResponse for Response
Source§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