#[non_exhaustive]pub struct ResponseExtractionMappingBuilder { /* private fields */ }Expand description
A builder for ResponseExtractionMapping.
Implementations§
Source§impl ResponseExtractionMappingBuilder
impl ResponseExtractionMappingBuilder
Sourcepub fn content_path(self, input: impl Into<String>) -> Self
pub fn content_path(self, input: impl Into<String>) -> Self
A JSON path expression that specifies how to extract a value from the response body content.
Sourcepub fn set_content_path(self, input: Option<String>) -> Self
pub fn set_content_path(self, input: Option<String>) -> Self
A JSON path expression that specifies how to extract a value from the response body content.
Sourcepub fn get_content_path(&self) -> &Option<String>
pub fn get_content_path(&self) -> &Option<String>
A JSON path expression that specifies how to extract a value from the response body content.
Sourcepub fn header_key(self, input: impl Into<String>) -> Self
pub fn header_key(self, input: impl Into<String>) -> Self
The name of an HTTP response header from which to extract the value.
Sourcepub fn set_header_key(self, input: Option<String>) -> Self
pub fn set_header_key(self, input: Option<String>) -> Self
The name of an HTTP response header from which to extract the value.
Sourcepub fn get_header_key(&self) -> &Option<String>
pub fn get_header_key(&self) -> &Option<String>
The name of an HTTP response header from which to extract the value.
Sourcepub fn build(self) -> ResponseExtractionMapping
pub fn build(self) -> ResponseExtractionMapping
Consumes the builder and constructs a ResponseExtractionMapping.
Trait Implementations§
Source§impl Clone for ResponseExtractionMappingBuilder
impl Clone for ResponseExtractionMappingBuilder
Source§fn clone(&self) -> ResponseExtractionMappingBuilder
fn clone(&self) -> ResponseExtractionMappingBuilder
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for ResponseExtractionMappingBuilder
impl Default for ResponseExtractionMappingBuilder
Source§fn default() -> ResponseExtractionMappingBuilder
fn default() -> ResponseExtractionMappingBuilder
Returns the “default value” for a type. Read more
Source§impl PartialEq for ResponseExtractionMappingBuilder
impl PartialEq for ResponseExtractionMappingBuilder
Source§fn eq(&self, other: &ResponseExtractionMappingBuilder) -> bool
fn eq(&self, other: &ResponseExtractionMappingBuilder) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ResponseExtractionMappingBuilder
Auto Trait Implementations§
impl Freeze for ResponseExtractionMappingBuilder
impl RefUnwindSafe for ResponseExtractionMappingBuilder
impl Send for ResponseExtractionMappingBuilder
impl Sync for ResponseExtractionMappingBuilder
impl Unpin for ResponseExtractionMappingBuilder
impl UnsafeUnpin for ResponseExtractionMappingBuilder
impl UnwindSafe for ResponseExtractionMappingBuilder
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> 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>
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 moreCreates a shared type from an unshared type.