Struct controller::traefik::middlewares_crd::MiddlewareErrors
source · pub struct MiddlewareErrors {
pub query: Option<String>,
pub service: Option<MiddlewareErrorsService>,
pub status: Option<Vec<String>>,
}Expand description
ErrorPage holds the custom error middleware configuration. This middleware returns a custom page in lieu of the default, according to configured ranges of HTTP Status codes. More info: https://doc.traefik.io/traefik/v3.0/middlewares/http/errorpages/
Fields§
§query: Option<String>Query defines the URL for the error page (hosted by service). The {status} variable can be used in order to insert the status code in the URL.
service: Option<MiddlewareErrorsService>Service defines the reference to a Kubernetes Service that will serve the error page. More info: https://doc.traefik.io/traefik/v3.0/middlewares/http/errorpages/#service
status: Option<Vec<String>>Status defines which status or range of statuses should result in an error page. It can be either a status code as a number (500), as multiple comma-separated numbers (500,502), as ranges by separating two codes with a dash (500-599), or a combination of the two (404,418,500-599).
Trait Implementations§
source§impl Clone for MiddlewareErrors
impl Clone for MiddlewareErrors
source§fn clone(&self) -> MiddlewareErrors
fn clone(&self) -> MiddlewareErrors
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for MiddlewareErrors
impl Debug for MiddlewareErrors
source§impl Default for MiddlewareErrors
impl Default for MiddlewareErrors
source§fn default() -> MiddlewareErrors
fn default() -> MiddlewareErrors
source§impl<'de> Deserialize<'de> for MiddlewareErrors
impl<'de> Deserialize<'de> for MiddlewareErrors
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
source§impl JsonSchema for MiddlewareErrors
impl JsonSchema for MiddlewareErrors
source§fn schema_name() -> String
fn schema_name() -> String
source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
source§fn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
$ref keyword. Read more