pub struct MiddlewareErrorsService {
pub kind: Option<MiddlewareErrorsServiceKind>,
pub name: String,
pub namespace: Option<String>,
pub pass_host_header: Option<bool>,
pub port: Option<IntOrString>,
pub response_forwarding: Option<MiddlewareErrorsServiceResponseForwarding>,
pub scheme: Option<String>,
pub servers_transport: Option<String>,
pub sticky: Option<MiddlewareErrorsServiceSticky>,
pub strategy: Option<String>,
pub weight: Option<i64>,
}Expand description
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
Fields§
§kind: Option<MiddlewareErrorsServiceKind>Kind defines the kind of the Service.
name: StringName defines the name of the referenced Kubernetes Service or TraefikService. The differentiation between the two is specified in the Kind field.
namespace: Option<String>Namespace defines the namespace of the referenced Kubernetes Service or TraefikService.
pass_host_header: Option<bool>PassHostHeader defines whether the client Host header is forwarded to the upstream Kubernetes Service. By default, passHostHeader is true.
port: Option<IntOrString>Port defines the port of a Kubernetes Service. This can be a reference to a named port.
response_forwarding: Option<MiddlewareErrorsServiceResponseForwarding>ResponseForwarding defines how Traefik forwards the response from the upstream Kubernetes Service to the client.
scheme: Option<String>Scheme defines the scheme to use for the request to the upstream Kubernetes Service. It defaults to https when Kubernetes Service port is 443, http otherwise.
servers_transport: Option<String>ServersTransport defines the name of ServersTransport resource to use. It allows to configure the transport between Traefik and your servers. Can only be used on a Kubernetes Service.
sticky: Option<MiddlewareErrorsServiceSticky>Sticky defines the sticky sessions configuration. More info: https://doc.traefik.io/traefik/v3.0/routing/services/#sticky-sessions
strategy: Option<String>Strategy defines the load balancing strategy between the servers. RoundRobin is the only supported value at the moment.
weight: Option<i64>Weight defines the weight and should only be specified when Name references a TraefikService object (and to be precise, one that embeds a Weighted Round Robin).
Trait Implementations§
source§impl Clone for MiddlewareErrorsService
impl Clone for MiddlewareErrorsService
source§fn clone(&self) -> MiddlewareErrorsService
fn clone(&self) -> MiddlewareErrorsService
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for MiddlewareErrorsService
impl Debug for MiddlewareErrorsService
source§impl Default for MiddlewareErrorsService
impl Default for MiddlewareErrorsService
source§fn default() -> MiddlewareErrorsService
fn default() -> MiddlewareErrorsService
source§impl<'de> Deserialize<'de> for MiddlewareErrorsService
impl<'de> Deserialize<'de> for MiddlewareErrorsService
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 MiddlewareErrorsService
impl JsonSchema for MiddlewareErrorsService
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