#[non_exhaustive]pub struct ResponseConfigurationBuilder { /* private fields */ }Expand description
A builder for ResponseConfiguration.
Implementations§
Source§impl ResponseConfigurationBuilder
impl ResponseConfigurationBuilder
Sourcepub fn result_path(self, input: impl Into<String>) -> Self
pub fn result_path(self, input: impl Into<String>) -> Self
The JSON path expression that identifies where the actual result data is located within the API response.
This field is required.Sourcepub fn set_result_path(self, input: Option<String>) -> Self
pub fn set_result_path(self, input: Option<String>) -> Self
The JSON path expression that identifies where the actual result data is located within the API response.
Sourcepub fn get_result_path(&self) -> &Option<String>
pub fn get_result_path(&self) -> &Option<String>
The JSON path expression that identifies where the actual result data is located within the API response.
Sourcepub fn error_path(self, input: impl Into<String>) -> Self
pub fn error_path(self, input: impl Into<String>) -> Self
The JSON path expression that identifies where error information is located within API responses when requests fail.
Sourcepub fn set_error_path(self, input: Option<String>) -> Self
pub fn set_error_path(self, input: Option<String>) -> Self
The JSON path expression that identifies where error information is located within API responses when requests fail.
Sourcepub fn get_error_path(&self) -> &Option<String>
pub fn get_error_path(&self) -> &Option<String>
The JSON path expression that identifies where error information is located within API responses when requests fail.
Sourcepub fn build(self) -> Result<ResponseConfiguration, BuildError>
pub fn build(self) -> Result<ResponseConfiguration, BuildError>
Consumes the builder and constructs a ResponseConfiguration.
This method will fail if any of the following fields are not set:
Trait Implementations§
Source§impl Clone for ResponseConfigurationBuilder
impl Clone for ResponseConfigurationBuilder
Source§fn clone(&self) -> ResponseConfigurationBuilder
fn clone(&self) -> ResponseConfigurationBuilder
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ResponseConfigurationBuilder
impl Debug for ResponseConfigurationBuilder
Source§impl Default for ResponseConfigurationBuilder
impl Default for ResponseConfigurationBuilder
Source§fn default() -> ResponseConfigurationBuilder
fn default() -> ResponseConfigurationBuilder
Source§impl PartialEq for ResponseConfigurationBuilder
impl PartialEq for ResponseConfigurationBuilder
Source§fn eq(&self, other: &ResponseConfigurationBuilder) -> bool
fn eq(&self, other: &ResponseConfigurationBuilder) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ResponseConfigurationBuilder
Auto Trait Implementations§
impl Freeze for ResponseConfigurationBuilder
impl RefUnwindSafe for ResponseConfigurationBuilder
impl Send for ResponseConfigurationBuilder
impl Sync for ResponseConfigurationBuilder
impl Unpin for ResponseConfigurationBuilder
impl UnsafeUnpin for ResponseConfigurationBuilder
impl UnwindSafe for ResponseConfigurationBuilder
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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>
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>
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