Struct k8s_gateway_api::CommonRouteSpec
source · [−]pub struct CommonRouteSpec {
pub parent_refs: Option<Vec<ParentReference>>,
}Expand description
CommonRouteSpec defines the common attributes that all Routes MUST include within their spec.
Fields
parent_refs: Option<Vec<ParentReference>>ParentRefs references the resources (usually Gateways) that a Route wants to be attached to. Note that the referenced parent resource needs to allow this for the attachment to be complete. For Gateways, that means the Gateway needs to allow attachment from Routes of this kind and namespace.
The only kind of parent resource with “Core” support is Gateway. This API may be extended in the future to support additional kinds of parent resources such as one of the route kinds.
It is invalid to reference an identical parent more than once. It is valid to reference multiple distinct sections within the same parent resource, such as 2 Listeners within a Gateway.
It is possible to separately reference multiple distinct objects that may be collapsed by an implementation. For example, some implementations may choose to merge compatible Gateway Listeners together. If that is the case, the list of routes attached to those resources should also be merged.
Trait Implementations
sourceimpl Clone for CommonRouteSpec
impl Clone for CommonRouteSpec
sourcefn clone(&self) -> CommonRouteSpec
fn clone(&self) -> CommonRouteSpec
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresourceimpl Debug for CommonRouteSpec
impl Debug for CommonRouteSpec
sourceimpl Default for CommonRouteSpec
impl Default for CommonRouteSpec
sourcefn default() -> CommonRouteSpec
fn default() -> CommonRouteSpec
sourceimpl<'de> Deserialize<'de> for CommonRouteSpec
impl<'de> Deserialize<'de> for CommonRouteSpec
sourcefn 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>,
sourceimpl JsonSchema for CommonRouteSpec
impl JsonSchema for CommonRouteSpec
sourcefn schema_name() -> String
fn schema_name() -> String
sourcefn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
sourcefn is_referenceable() -> bool
fn is_referenceable() -> bool
$ref keyword. Read more