#[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 ==
.