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
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for CommonRouteSpec
impl Debug for CommonRouteSpec
sourceimpl Default for CommonRouteSpec
impl Default for CommonRouteSpec
sourcefn default() -> CommonRouteSpec
fn default() -> CommonRouteSpec
Returns the “default value” for a type. Read more
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>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl JsonSchema for CommonRouteSpec
impl JsonSchema for CommonRouteSpec
sourcefn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
sourcefn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
sourcefn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the $ref
keyword. Read more
sourceimpl PartialEq<CommonRouteSpec> for CommonRouteSpec
impl PartialEq<CommonRouteSpec> for CommonRouteSpec
sourcefn eq(&self, other: &CommonRouteSpec) -> bool
fn eq(&self, other: &CommonRouteSpec) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &CommonRouteSpec) -> bool
fn ne(&self, other: &CommonRouteSpec) -> bool
This method tests for !=
.
sourceimpl Serialize for CommonRouteSpec
impl Serialize for CommonRouteSpec
impl StructuralPartialEq for CommonRouteSpec
Auto Trait Implementations
impl RefUnwindSafe for CommonRouteSpec
impl Send for CommonRouteSpec
impl Sync for CommonRouteSpec
impl Unpin for CommonRouteSpec
impl UnwindSafe for CommonRouteSpec
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more