#[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 ==
.impl StructuralPartialEq for ResponseInspectionBodyContainsBuilder
Auto Trait Implementations§
impl Freeze for ResponseInspectionBodyContainsBuilder
impl RefUnwindSafe for ResponseInspectionBodyContainsBuilder
impl Send for ResponseInspectionBodyContainsBuilder
impl Sync for ResponseInspectionBodyContainsBuilder
impl Unpin for ResponseInspectionBodyContainsBuilder
impl UnwindSafe for ResponseInspectionBodyContainsBuilder
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