Struct k8s_openapi::api::extensions::v1beta1::IngressRule [−][src]
pub struct IngressRule { pub host: Option<String>, pub http: Option<HTTPIngressRuleValue>, }
Expand description
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.
2. 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
[src]fn clone(&self) -> IngressRule
[src]
fn clone(&self) -> IngressRule
[src]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)
1.0.0[src]Performs copy-assignment from source
. Read more
impl Debug for IngressRule
[src]
impl Debug for IngressRule
[src]impl Default for IngressRule
[src]
impl Default for IngressRule
[src]fn default() -> IngressRule
[src]
fn default() -> IngressRule
[src]Returns the “default value” for a type. Read more
impl<'de> Deserialize<'de> for IngressRule
[src]
impl<'de> Deserialize<'de> for IngressRule
[src]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>,
[src]Deserialize this value from the given Serde deserializer. Read more
impl PartialEq<IngressRule> for IngressRule
[src]
impl PartialEq<IngressRule> for IngressRule
[src]fn eq(&self, other: &IngressRule) -> bool
[src]
fn eq(&self, other: &IngressRule) -> bool
[src]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
[src]This method tests for !=
.
impl Serialize for IngressRule
[src]
impl Serialize for IngressRule
[src]impl StructuralPartialEq for IngressRule
[src]
Auto Trait Implementations
impl RefUnwindSafe for IngressRule
impl Send for IngressRule
impl Sync for IngressRule
impl Unpin for IngressRule
impl UnwindSafe for IngressRule
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,