#[non_exhaustive]pub struct ResponseInspectionBodyContainsBuilder { /* private fields */ }
Expand description
A builder for ResponseInspectionBodyContains
.
Implementations§
source§impl ResponseInspectionBodyContainsBuilder
impl ResponseInspectionBodyContainsBuilder
sourcepub fn success_strings(self, input: impl Into<String>) -> Self
pub fn success_strings(self, input: impl Into<String>) -> Self
Appends an item to success_strings
.
To override the contents of this collection use set_success_strings
.
Strings in the body of the response that indicate a successful login or account creation attempt. To be counted as a success, the string can be anywhere in the body and must be an exact match, including case. Each string must be unique among the success and failure strings.
JSON examples: "SuccessStrings": [ "Login successful" ]
and "SuccessStrings": [ "Account creation successful", "Welcome to our site!" ]
sourcepub fn set_success_strings(self, input: Option<Vec<String>>) -> Self
pub fn set_success_strings(self, input: Option<Vec<String>>) -> Self
Strings in the body of the response that indicate a successful login or account creation attempt. To be counted as a success, the string can be anywhere in the body and must be an exact match, including case. Each string must be unique among the success and failure strings.
JSON examples: "SuccessStrings": [ "Login successful" ]
and "SuccessStrings": [ "Account creation successful", "Welcome to our site!" ]
sourcepub fn get_success_strings(&self) -> &Option<Vec<String>>
pub fn get_success_strings(&self) -> &Option<Vec<String>>
Strings in the body of the response that indicate a successful login or account creation attempt. To be counted as a success, the string can be anywhere in the body and must be an exact match, including case. Each string must be unique among the success and failure strings.
JSON examples: "SuccessStrings": [ "Login successful" ]
and "SuccessStrings": [ "Account creation successful", "Welcome to our site!" ]
sourcepub fn failure_strings(self, input: impl Into<String>) -> Self
pub fn failure_strings(self, input: impl Into<String>) -> Self
Appends an item to failure_strings
.
To override the contents of this collection use set_failure_strings
.
Strings in the body of the response that indicate a failed login or account creation attempt. To be counted as a failure, the string can be anywhere in the body and must be an exact match, including case. Each string must be unique among the success and failure strings.
JSON example: "FailureStrings": [ "Request failed" ]
sourcepub fn set_failure_strings(self, input: Option<Vec<String>>) -> Self
pub fn set_failure_strings(self, input: Option<Vec<String>>) -> Self
Strings in the body of the response that indicate a failed login or account creation attempt. To be counted as a failure, the string can be anywhere in the body and must be an exact match, including case. Each string must be unique among the success and failure strings.
JSON example: "FailureStrings": [ "Request failed" ]
sourcepub fn get_failure_strings(&self) -> &Option<Vec<String>>
pub fn get_failure_strings(&self) -> &Option<Vec<String>>
Strings in the body of the response that indicate a failed login or account creation attempt. To be counted as a failure, the string can be anywhere in the body and must be an exact match, including case. Each string must be unique among the success and failure strings.
JSON example: "FailureStrings": [ "Request failed" ]
sourcepub fn build(self) -> Result<ResponseInspectionBodyContains, BuildError>
pub fn build(self) -> Result<ResponseInspectionBodyContains, BuildError>
Consumes the builder and constructs a ResponseInspectionBodyContains
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for ResponseInspectionBodyContainsBuilder
impl Clone for ResponseInspectionBodyContainsBuilder
source§fn clone(&self) -> ResponseInspectionBodyContainsBuilder
fn clone(&self) -> ResponseInspectionBodyContainsBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for ResponseInspectionBodyContainsBuilder
impl Default for ResponseInspectionBodyContainsBuilder
source§fn default() -> ResponseInspectionBodyContainsBuilder
fn default() -> ResponseInspectionBodyContainsBuilder
source§impl PartialEq for ResponseInspectionBodyContainsBuilder
impl PartialEq for ResponseInspectionBodyContainsBuilder
source§fn eq(&self, other: &ResponseInspectionBodyContainsBuilder) -> bool
fn eq(&self, other: &ResponseInspectionBodyContainsBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.