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