#[non_exhaustive]pub struct StatusCodesBuilder { /* private fields */ }
Expand description
A builder for StatusCodes
.
Implementations§
source§impl StatusCodesBuilder
impl StatusCodesBuilder
sourcepub fn status2xx(self, input: i32) -> Self
pub fn status2xx(self, input: i32) -> Self
The percentage of requests over the last 10 seconds that resulted in a 2xx (200, 201, etc.) status code.
sourcepub fn set_status2xx(self, input: Option<i32>) -> Self
pub fn set_status2xx(self, input: Option<i32>) -> Self
The percentage of requests over the last 10 seconds that resulted in a 2xx (200, 201, etc.) status code.
sourcepub fn get_status2xx(&self) -> &Option<i32>
pub fn get_status2xx(&self) -> &Option<i32>
The percentage of requests over the last 10 seconds that resulted in a 2xx (200, 201, etc.) status code.
sourcepub fn status3xx(self, input: i32) -> Self
pub fn status3xx(self, input: i32) -> Self
The percentage of requests over the last 10 seconds that resulted in a 3xx (300, 301, etc.) status code.
sourcepub fn set_status3xx(self, input: Option<i32>) -> Self
pub fn set_status3xx(self, input: Option<i32>) -> Self
The percentage of requests over the last 10 seconds that resulted in a 3xx (300, 301, etc.) status code.
sourcepub fn get_status3xx(&self) -> &Option<i32>
pub fn get_status3xx(&self) -> &Option<i32>
The percentage of requests over the last 10 seconds that resulted in a 3xx (300, 301, etc.) status code.
sourcepub fn status4xx(self, input: i32) -> Self
pub fn status4xx(self, input: i32) -> Self
The percentage of requests over the last 10 seconds that resulted in a 4xx (400, 401, etc.) status code.
sourcepub fn set_status4xx(self, input: Option<i32>) -> Self
pub fn set_status4xx(self, input: Option<i32>) -> Self
The percentage of requests over the last 10 seconds that resulted in a 4xx (400, 401, etc.) status code.
sourcepub fn get_status4xx(&self) -> &Option<i32>
pub fn get_status4xx(&self) -> &Option<i32>
The percentage of requests over the last 10 seconds that resulted in a 4xx (400, 401, etc.) status code.
sourcepub fn status5xx(self, input: i32) -> Self
pub fn status5xx(self, input: i32) -> Self
The percentage of requests over the last 10 seconds that resulted in a 5xx (500, 501, etc.) status code.
sourcepub fn set_status5xx(self, input: Option<i32>) -> Self
pub fn set_status5xx(self, input: Option<i32>) -> Self
The percentage of requests over the last 10 seconds that resulted in a 5xx (500, 501, etc.) status code.
sourcepub fn get_status5xx(&self) -> &Option<i32>
pub fn get_status5xx(&self) -> &Option<i32>
The percentage of requests over the last 10 seconds that resulted in a 5xx (500, 501, etc.) status code.
sourcepub fn build(self) -> StatusCodes
pub fn build(self) -> StatusCodes
Consumes the builder and constructs a StatusCodes
.
Trait Implementations§
source§impl Clone for StatusCodesBuilder
impl Clone for StatusCodesBuilder
source§fn clone(&self) -> StatusCodesBuilder
fn clone(&self) -> StatusCodesBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for StatusCodesBuilder
impl Debug for StatusCodesBuilder
source§impl Default for StatusCodesBuilder
impl Default for StatusCodesBuilder
source§fn default() -> StatusCodesBuilder
fn default() -> StatusCodesBuilder
source§impl PartialEq<StatusCodesBuilder> for StatusCodesBuilder
impl PartialEq<StatusCodesBuilder> for StatusCodesBuilder
source§fn eq(&self, other: &StatusCodesBuilder) -> bool
fn eq(&self, other: &StatusCodesBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.