#[non_exhaustive]pub struct ResponseInspectionStatusCodeBuilder { /* private fields */ }
Expand description
A builder for ResponseInspectionStatusCode
.
Implementations§
source§impl ResponseInspectionStatusCodeBuilder
impl ResponseInspectionStatusCodeBuilder
sourcepub fn success_codes(self, input: i32) -> Self
pub fn success_codes(self, input: i32) -> Self
Appends an item to success_codes
.
To override the contents of this collection use set_success_codes
.
Status codes in the response that indicate a successful login or account creation attempt. To be counted as a success, the response status code must match one of these. Each code must be unique among the success and failure status codes.
JSON example: "SuccessCodes": [ 200, 201 ]
sourcepub fn set_success_codes(self, input: Option<Vec<i32>>) -> Self
pub fn set_success_codes(self, input: Option<Vec<i32>>) -> Self
Status codes in the response that indicate a successful login or account creation attempt. To be counted as a success, the response status code must match one of these. Each code must be unique among the success and failure status codes.
JSON example: "SuccessCodes": [ 200, 201 ]
sourcepub fn get_success_codes(&self) -> &Option<Vec<i32>>
pub fn get_success_codes(&self) -> &Option<Vec<i32>>
Status codes in the response that indicate a successful login or account creation attempt. To be counted as a success, the response status code must match one of these. Each code must be unique among the success and failure status codes.
JSON example: "SuccessCodes": [ 200, 201 ]
sourcepub fn failure_codes(self, input: i32) -> Self
pub fn failure_codes(self, input: i32) -> Self
Appends an item to failure_codes
.
To override the contents of this collection use set_failure_codes
.
Status codes in the response that indicate a failed login or account creation attempt. To be counted as a failure, the response status code must match one of these. Each code must be unique among the success and failure status codes.
JSON example: "FailureCodes": [ 400, 404 ]
sourcepub fn set_failure_codes(self, input: Option<Vec<i32>>) -> Self
pub fn set_failure_codes(self, input: Option<Vec<i32>>) -> Self
Status codes in the response that indicate a failed login or account creation attempt. To be counted as a failure, the response status code must match one of these. Each code must be unique among the success and failure status codes.
JSON example: "FailureCodes": [ 400, 404 ]
sourcepub fn get_failure_codes(&self) -> &Option<Vec<i32>>
pub fn get_failure_codes(&self) -> &Option<Vec<i32>>
Status codes in the response that indicate a failed login or account creation attempt. To be counted as a failure, the response status code must match one of these. Each code must be unique among the success and failure status codes.
JSON example: "FailureCodes": [ 400, 404 ]
sourcepub fn build(self) -> Result<ResponseInspectionStatusCode, BuildError>
pub fn build(self) -> Result<ResponseInspectionStatusCode, BuildError>
Consumes the builder and constructs a ResponseInspectionStatusCode
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for ResponseInspectionStatusCodeBuilder
impl Clone for ResponseInspectionStatusCodeBuilder
source§fn clone(&self) -> ResponseInspectionStatusCodeBuilder
fn clone(&self) -> ResponseInspectionStatusCodeBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for ResponseInspectionStatusCodeBuilder
impl Default for ResponseInspectionStatusCodeBuilder
source§fn default() -> ResponseInspectionStatusCodeBuilder
fn default() -> ResponseInspectionStatusCodeBuilder
source§impl PartialEq for ResponseInspectionStatusCodeBuilder
impl PartialEq for ResponseInspectionStatusCodeBuilder
source§fn eq(&self, other: &ResponseInspectionStatusCodeBuilder) -> bool
fn eq(&self, other: &ResponseInspectionStatusCodeBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.