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