Struct k8s_gateway_api::AllowedRoutes
source · [−]pub struct AllowedRoutes {
pub namespaces: Option<RouteNamespaces>,
pub kinds: Option<Vec<RouteGroupKind>>,
}
Expand description
AllowedRoutes defines which Routes may be attached to this Listener.
Fields
namespaces: Option<RouteNamespaces>
Namespaces indicates namespaces from which Routes may be attached to this Listener. This is restricted to the namespace of this Gateway by default.
Support: Core
kinds: Option<Vec<RouteGroupKind>>
Kinds specifies the groups and kinds of Routes that are allowed to bind to this Gateway Listener. When unspecified or empty, the kinds of Routes selected are determined using the Listener protocol.
A RouteGroupKind MUST correspond to kinds of Routes that are compatible with the application protocol specified in the Listener’s Protocol field. If an implementation does not support or recognize this resource type, it MUST set the “ResolvedRefs” condition to False for this Listener with the “InvalidRouteKinds” reason.
Support: Core
Trait Implementations
sourceimpl Clone for AllowedRoutes
impl Clone for AllowedRoutes
sourcefn clone(&self) -> AllowedRoutes
fn clone(&self) -> AllowedRoutes
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 AllowedRoutes
impl Debug for AllowedRoutes
sourceimpl<'de> Deserialize<'de> for AllowedRoutes
impl<'de> Deserialize<'de> for AllowedRoutes
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 AllowedRoutes
impl JsonSchema for AllowedRoutes
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<AllowedRoutes> for AllowedRoutes
impl PartialEq<AllowedRoutes> for AllowedRoutes
sourcefn eq(&self, other: &AllowedRoutes) -> bool
fn eq(&self, other: &AllowedRoutes) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &AllowedRoutes) -> bool
fn ne(&self, other: &AllowedRoutes) -> bool
This method tests for !=
.
sourceimpl Serialize for AllowedRoutes
impl Serialize for AllowedRoutes
impl StructuralPartialEq for AllowedRoutes
Auto Trait Implementations
impl RefUnwindSafe for AllowedRoutes
impl Send for AllowedRoutes
impl Sync for AllowedRoutes
impl Unpin for AllowedRoutes
impl UnwindSafe for AllowedRoutes
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