#[non_exhaustive]pub struct ResponseInspectionJsonBuilder { /* private fields */ }
Expand description
A builder for ResponseInspectionJson
.
Implementations§
source§impl ResponseInspectionJsonBuilder
impl ResponseInspectionJsonBuilder
sourcepub fn identifier(self, input: impl Into<String>) -> Self
pub fn identifier(self, input: impl Into<String>) -> Self
The identifier for the value to match against in the JSON. The identifier must be an exact match, including case.
JSON examples: "Identifier": [ "/login/success" ]
and "Identifier": [ "/sign-up/success" ]
sourcepub fn set_identifier(self, input: Option<String>) -> Self
pub fn set_identifier(self, input: Option<String>) -> Self
The identifier for the value to match against in the JSON. The identifier must be an exact match, including case.
JSON examples: "Identifier": [ "/login/success" ]
and "Identifier": [ "/sign-up/success" ]
sourcepub fn get_identifier(&self) -> &Option<String>
pub fn get_identifier(&self) -> &Option<String>
The identifier for the value to match against in the JSON. The identifier must be an exact match, including case.
JSON examples: "Identifier": [ "/login/success" ]
and "Identifier": [ "/sign-up/success" ]
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 for the specified identifier in the response JSON 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 example: "SuccessValues": [ "True", "Succeeded" ]
sourcepub fn set_success_values(self, input: Option<Vec<String>>) -> Self
pub fn set_success_values(self, input: Option<Vec<String>>) -> Self
Values for the specified identifier in the response JSON 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 example: "SuccessValues": [ "True", "Succeeded" ]
sourcepub fn get_success_values(&self) -> &Option<Vec<String>>
pub fn get_success_values(&self) -> &Option<Vec<String>>
Values for the specified identifier in the response JSON 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 example: "SuccessValues": [ "True", "Succeeded" ]
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 for the specified identifier in the response JSON 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 example: "FailureValues": [ "False", "Failed" ]
sourcepub fn set_failure_values(self, input: Option<Vec<String>>) -> Self
pub fn set_failure_values(self, input: Option<Vec<String>>) -> Self
Values for the specified identifier in the response JSON 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 example: "FailureValues": [ "False", "Failed" ]
sourcepub fn get_failure_values(&self) -> &Option<Vec<String>>
pub fn get_failure_values(&self) -> &Option<Vec<String>>
Values for the specified identifier in the response JSON 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 example: "FailureValues": [ "False", "Failed" ]
sourcepub fn build(self) -> Result<ResponseInspectionJson, BuildError>
pub fn build(self) -> Result<ResponseInspectionJson, BuildError>
Consumes the builder and constructs a ResponseInspectionJson
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for ResponseInspectionJsonBuilder
impl Clone for ResponseInspectionJsonBuilder
source§fn clone(&self) -> ResponseInspectionJsonBuilder
fn clone(&self) -> ResponseInspectionJsonBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for ResponseInspectionJsonBuilder
impl Default for ResponseInspectionJsonBuilder
source§fn default() -> ResponseInspectionJsonBuilder
fn default() -> ResponseInspectionJsonBuilder
source§impl PartialEq for ResponseInspectionJsonBuilder
impl PartialEq for ResponseInspectionJsonBuilder
source§fn eq(&self, other: &ResponseInspectionJsonBuilder) -> bool
fn eq(&self, other: &ResponseInspectionJsonBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.