#[non_exhaustive]pub struct ExtractedParameterBuilder { /* private fields */ }Expand description
A builder for ExtractedParameter.
Implementations§
Source§impl ExtractedParameterBuilder
impl ExtractedParameterBuilder
Sourcepub fn key(self, input: impl Into<String>) -> Self
pub fn key(self, input: impl Into<String>) -> Self
The parameter key name that will be used in subsequent requests.
Sourcepub fn set_key(self, input: Option<String>) -> Self
pub fn set_key(self, input: Option<String>) -> Self
The parameter key name that will be used in subsequent requests.
Sourcepub fn get_key(&self) -> &Option<String>
pub fn get_key(&self) -> &Option<String>
The parameter key name that will be used in subsequent requests.
Sourcepub fn default_value(self, input: impl Into<String>) -> Self
pub fn default_value(self, input: impl Into<String>) -> Self
The default value to use if the parameter cannot be extracted from the response.
Sourcepub fn set_default_value(self, input: Option<String>) -> Self
pub fn set_default_value(self, input: Option<String>) -> Self
The default value to use if the parameter cannot be extracted from the response.
Sourcepub fn get_default_value(&self) -> &Option<String>
pub fn get_default_value(&self) -> &Option<String>
The default value to use if the parameter cannot be extracted from the response.
Sourcepub fn property_location(self, input: PropertyLocation) -> Self
pub fn property_location(self, input: PropertyLocation) -> Self
Specifies where this extracted parameter should be placed in subsequent requests, such as in headers, query parameters, or request body.
Sourcepub fn set_property_location(self, input: Option<PropertyLocation>) -> Self
pub fn set_property_location(self, input: Option<PropertyLocation>) -> Self
Specifies where this extracted parameter should be placed in subsequent requests, such as in headers, query parameters, or request body.
Sourcepub fn get_property_location(&self) -> &Option<PropertyLocation>
pub fn get_property_location(&self) -> &Option<PropertyLocation>
Specifies where this extracted parameter should be placed in subsequent requests, such as in headers, query parameters, or request body.
Sourcepub fn value(self, input: ResponseExtractionMapping) -> Self
pub fn value(self, input: ResponseExtractionMapping) -> Self
The JSON path or extraction mapping that defines how to extract the parameter value from API responses.
Sourcepub fn set_value(self, input: Option<ResponseExtractionMapping>) -> Self
pub fn set_value(self, input: Option<ResponseExtractionMapping>) -> Self
The JSON path or extraction mapping that defines how to extract the parameter value from API responses.
Sourcepub fn get_value(&self) -> &Option<ResponseExtractionMapping>
pub fn get_value(&self) -> &Option<ResponseExtractionMapping>
The JSON path or extraction mapping that defines how to extract the parameter value from API responses.
Sourcepub fn build(self) -> ExtractedParameter
pub fn build(self) -> ExtractedParameter
Consumes the builder and constructs a ExtractedParameter.
Trait Implementations§
Source§impl Clone for ExtractedParameterBuilder
impl Clone for ExtractedParameterBuilder
Source§fn clone(&self) -> ExtractedParameterBuilder
fn clone(&self) -> ExtractedParameterBuilder
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 ExtractedParameterBuilder
impl Debug for ExtractedParameterBuilder
Source§impl Default for ExtractedParameterBuilder
impl Default for ExtractedParameterBuilder
Source§fn default() -> ExtractedParameterBuilder
fn default() -> ExtractedParameterBuilder
Source§impl PartialEq for ExtractedParameterBuilder
impl PartialEq for ExtractedParameterBuilder
Source§fn eq(&self, other: &ExtractedParameterBuilder) -> bool
fn eq(&self, other: &ExtractedParameterBuilder) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ExtractedParameterBuilder
Auto Trait Implementations§
impl Freeze for ExtractedParameterBuilder
impl RefUnwindSafe for ExtractedParameterBuilder
impl Send for ExtractedParameterBuilder
impl Sync for ExtractedParameterBuilder
impl Unpin for ExtractedParameterBuilder
impl UnsafeUnpin for ExtractedParameterBuilder
impl UnwindSafe for ExtractedParameterBuilder
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