Struct k8s_openapi::v1_8::api::extensions::v1beta1::IngressRule [−][src]
pub struct IngressRule { pub host: Option<String>, pub http: Option<HTTPIngressRuleValue>, }
IngressRule represents the rules mapping the paths under a specified host to the related backend services. Incoming requests are first evaluated for a host match, then routed to the backend associated with the matching IngressRuleValue.
Fields
host: Option<String>
Host is the fully qualified domain name of a network host, as defined by RFC 3986. Note the following deviations from the "host" part of the URI as defined in the RFC: 1. IPs are not allowed. Currently an IngressRuleValue can only apply to the IP in the Spec of the parent Ingress.
- The
:
delimiter is not respected because ports are not allowed. Currently the port of an Ingress is implicitly :80 for http and :443 for https. Both these may change in the future. Incoming requests are matched against the host before the IngressRuleValue. If the host is unspecified, the Ingress routes all traffic based on the specified IngressRuleValue.
http: Option<HTTPIngressRuleValue>
Trait Implementations
impl Clone for IngressRule
[src]
impl Clone for IngressRule
fn clone(&self) -> IngressRule
[src]
fn clone(&self) -> IngressRule
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Debug for IngressRule
[src]
impl Debug for IngressRule
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Default for IngressRule
[src]
impl Default for IngressRule
fn default() -> IngressRule
[src]
fn default() -> IngressRule
Returns the "default value" for a type. Read more
impl PartialEq for IngressRule
[src]
impl PartialEq for IngressRule
fn eq(&self, other: &IngressRule) -> bool
[src]
fn eq(&self, other: &IngressRule) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &IngressRule) -> bool
[src]
fn ne(&self, other: &IngressRule) -> bool
This method tests for !=
.
impl<'de> Deserialize<'de> for IngressRule
[src]
impl<'de> Deserialize<'de> for IngressRule
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
[src]
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Serialize for IngressRule
[src]
impl Serialize for IngressRule
Auto Trait Implementations
impl Send for IngressRule
impl Send for IngressRule
impl Sync for IngressRule
impl Sync for IngressRule