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§
source§impl Clone for CommonRouteSpec
impl Clone for CommonRouteSpec
source§fn clone(&self) -> CommonRouteSpec
fn clone(&self) -> CommonRouteSpec
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CommonRouteSpec
impl Debug for CommonRouteSpec
source§impl Default for CommonRouteSpec
impl Default for CommonRouteSpec
source§fn default() -> CommonRouteSpec
fn default() -> CommonRouteSpec
source§impl<'de> Deserialize<'de> for CommonRouteSpec
impl<'de> Deserialize<'de> for CommonRouteSpec
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 CommonRouteSpec
impl JsonSchema for CommonRouteSpec
source§fn schema_name() -> String
fn schema_name() -> String
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 moresource§impl PartialEq<CommonRouteSpec> for CommonRouteSpec
impl PartialEq<CommonRouteSpec> for CommonRouteSpec
source§fn eq(&self, other: &CommonRouteSpec) -> bool
fn eq(&self, other: &CommonRouteSpec) -> bool
self
and other
values to be equal, and is used
by ==
.