Struct gateway_api::experimental::tcproutes::TCPRouteSpec
source · pub struct TCPRouteSpec {
pub parent_refs: Option<Vec<TCPRouteParentRefs>>,
pub rules: Vec<TCPRouteRules>,
}
Expand description
Spec defines the desired state of TCPRoute.
Fields
parent_refs: Option<Vec<TCPRouteParentRefs>>
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.
rules: Vec<TCPRouteRules>
Rules are a list of TCP matchers and actions.
Trait Implementations
sourceimpl Clone for TCPRouteSpec
impl Clone for TCPRouteSpec
sourcefn clone(&self) -> TCPRouteSpec
fn clone(&self) -> TCPRouteSpec
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresourceimpl Debug for TCPRouteSpec
impl Debug for TCPRouteSpec
sourceimpl<'de> Deserialize<'de> for TCPRouteSpec
impl<'de> Deserialize<'de> for TCPRouteSpec
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 TCPRouteSpec
impl JsonSchema for TCPRouteSpec
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