#[non_exhaustive]pub struct ExtractedParameter {
pub key: Option<String>,
pub default_value: Option<String>,
pub property_location: Option<PropertyLocation>,
pub value: Option<ResponseExtractionMapping>,
}Expand description
Parameter extraction configuration that defines how to extract and map values from API responses to request parameters.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.key: Option<String>The parameter key name that will be used in subsequent requests.
default_value: Option<String>The default value to use if the parameter cannot be extracted from the response.
property_location: Option<PropertyLocation>Specifies where this extracted parameter should be placed in subsequent requests, such as in headers, query parameters, or request body.
value: Option<ResponseExtractionMapping>The JSON path or extraction mapping that defines how to extract the parameter value from API responses.
Implementations§
Source§impl ExtractedParameter
impl ExtractedParameter
Sourcepub fn key(&self) -> Option<&str>
pub fn key(&self) -> Option<&str>
The parameter key name that will be used in subsequent requests.
Sourcepub fn default_value(&self) -> Option<&str>
pub fn default_value(&self) -> Option<&str>
The default value to use if the parameter cannot be extracted from the response.
Sourcepub fn property_location(&self) -> Option<&PropertyLocation>
pub fn 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) -> Option<&ResponseExtractionMapping>
pub fn value(&self) -> Option<&ResponseExtractionMapping>
The JSON path or extraction mapping that defines how to extract the parameter value from API responses.
Source§impl ExtractedParameter
impl ExtractedParameter
Sourcepub fn builder() -> ExtractedParameterBuilder
pub fn builder() -> ExtractedParameterBuilder
Creates a new builder-style object to manufacture ExtractedParameter.
Trait Implementations§
Source§impl Clone for ExtractedParameter
impl Clone for ExtractedParameter
Source§fn clone(&self) -> ExtractedParameter
fn clone(&self) -> ExtractedParameter
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 ExtractedParameter
impl Debug for ExtractedParameter
Source§impl PartialEq for ExtractedParameter
impl PartialEq for ExtractedParameter
Source§fn eq(&self, other: &ExtractedParameter) -> bool
fn eq(&self, other: &ExtractedParameter) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ExtractedParameter
Auto Trait Implementations§
impl Freeze for ExtractedParameter
impl RefUnwindSafe for ExtractedParameter
impl Send for ExtractedParameter
impl Sync for ExtractedParameter
impl Unpin for ExtractedParameter
impl UnsafeUnpin for ExtractedParameter
impl UnwindSafe for ExtractedParameter
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