#[non_exhaustive]pub struct ResponseInspectionHeaderBuilder { /* private fields */ }
Expand description
A builder for ResponseInspectionHeader
.
Implementations§
source§impl ResponseInspectionHeaderBuilder
impl ResponseInspectionHeaderBuilder
sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
The name of the header to match against. The name must be an exact match, including case.
JSON example: "Name": [ "RequestResult" ]
sourcepub fn set_name(self, input: Option<String>) -> Self
pub fn set_name(self, input: Option<String>) -> Self
The name of the header to match against. The name must be an exact match, including case.
JSON example: "Name": [ "RequestResult" ]
sourcepub fn get_name(&self) -> &Option<String>
pub fn get_name(&self) -> &Option<String>
The name of the header to match against. The name must be an exact match, including case.
JSON example: "Name": [ "RequestResult" ]
sourcepub fn success_values(self, input: impl Into<String>) -> Self
pub fn success_values(self, input: impl Into<String>) -> Self
Appends an item to success_values
.
To override the contents of this collection use set_success_values
.
Values in the response header with the specified name that indicate a successful login or account creation attempt. To be counted as a success, the value must be an exact match, including case. Each value must be unique among the success and failure values.
JSON examples: "SuccessValues": [ "LoginPassed", "Successful login" ]
and "SuccessValues": [ "AccountCreated", "Successful account creation" ]
sourcepub fn set_success_values(self, input: Option<Vec<String>>) -> Self
pub fn set_success_values(self, input: Option<Vec<String>>) -> Self
Values in the response header with the specified name that indicate a successful login or account creation attempt. To be counted as a success, the value must be an exact match, including case. Each value must be unique among the success and failure values.
JSON examples: "SuccessValues": [ "LoginPassed", "Successful login" ]
and "SuccessValues": [ "AccountCreated", "Successful account creation" ]
sourcepub fn get_success_values(&self) -> &Option<Vec<String>>
pub fn get_success_values(&self) -> &Option<Vec<String>>
Values in the response header with the specified name that indicate a successful login or account creation attempt. To be counted as a success, the value must be an exact match, including case. Each value must be unique among the success and failure values.
JSON examples: "SuccessValues": [ "LoginPassed", "Successful login" ]
and "SuccessValues": [ "AccountCreated", "Successful account creation" ]
sourcepub fn failure_values(self, input: impl Into<String>) -> Self
pub fn failure_values(self, input: impl Into<String>) -> Self
Appends an item to failure_values
.
To override the contents of this collection use set_failure_values
.
Values in the response header with the specified name that indicate a failed login or account creation attempt. To be counted as a failure, the value must be an exact match, including case. Each value must be unique among the success and failure values.
JSON examples: "FailureValues": [ "LoginFailed", "Failed login" ]
and "FailureValues": [ "AccountCreationFailed" ]
sourcepub fn set_failure_values(self, input: Option<Vec<String>>) -> Self
pub fn set_failure_values(self, input: Option<Vec<String>>) -> Self
Values in the response header with the specified name that indicate a failed login or account creation attempt. To be counted as a failure, the value must be an exact match, including case. Each value must be unique among the success and failure values.
JSON examples: "FailureValues": [ "LoginFailed", "Failed login" ]
and "FailureValues": [ "AccountCreationFailed" ]
sourcepub fn get_failure_values(&self) -> &Option<Vec<String>>
pub fn get_failure_values(&self) -> &Option<Vec<String>>
Values in the response header with the specified name that indicate a failed login or account creation attempt. To be counted as a failure, the value must be an exact match, including case. Each value must be unique among the success and failure values.
JSON examples: "FailureValues": [ "LoginFailed", "Failed login" ]
and "FailureValues": [ "AccountCreationFailed" ]
sourcepub fn build(self) -> Result<ResponseInspectionHeader, BuildError>
pub fn build(self) -> Result<ResponseInspectionHeader, BuildError>
Consumes the builder and constructs a ResponseInspectionHeader
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for ResponseInspectionHeaderBuilder
impl Clone for ResponseInspectionHeaderBuilder
source§fn clone(&self) -> ResponseInspectionHeaderBuilder
fn clone(&self) -> ResponseInspectionHeaderBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for ResponseInspectionHeaderBuilder
impl Default for ResponseInspectionHeaderBuilder
source§fn default() -> ResponseInspectionHeaderBuilder
fn default() -> ResponseInspectionHeaderBuilder
source§impl PartialEq for ResponseInspectionHeaderBuilder
impl PartialEq for ResponseInspectionHeaderBuilder
source§fn eq(&self, other: &ResponseInspectionHeaderBuilder) -> bool
fn eq(&self, other: &ResponseInspectionHeaderBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ResponseInspectionHeaderBuilder
Auto Trait Implementations§
impl Freeze for ResponseInspectionHeaderBuilder
impl RefUnwindSafe for ResponseInspectionHeaderBuilder
impl Send for ResponseInspectionHeaderBuilder
impl Sync for ResponseInspectionHeaderBuilder
impl Unpin for ResponseInspectionHeaderBuilder
impl UnwindSafe for ResponseInspectionHeaderBuilder
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> 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