Struct k8s_gateway_api::RouteNamespaces
source · [−]pub struct RouteNamespaces {
pub from: Option<FromNamespaces>,
pub selector: Option<LabelSelector>,
}
Expand description
RouteNamespaces indicate which namespaces Routes should be selected from.
Fields
from: Option<FromNamespaces>
From indicates where Routes will be selected for this Gateway. Possible values are:
- All: Routes in all namespaces may be used by this Gateway.
- Selector: Routes in namespaces selected by the selector may be used by this Gateway.
- Same: Only Routes in the same namespace may be used by this Gateway.
Support: Core
selector: Option<LabelSelector>
Selector must be specified when From is set to “Selector”. In that case, only Routes in Namespaces matching this Selector will be selected by this Gateway. This field is ignored for other values of “From”.
Support: Core
Trait Implementations
sourceimpl Clone for RouteNamespaces
impl Clone for RouteNamespaces
sourcefn clone(&self) -> RouteNamespaces
fn clone(&self) -> RouteNamespaces
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 RouteNamespaces
impl Debug for RouteNamespaces
sourceimpl<'de> Deserialize<'de> for RouteNamespaces
impl<'de> Deserialize<'de> for RouteNamespaces
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 RouteNamespaces
impl JsonSchema for RouteNamespaces
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<RouteNamespaces> for RouteNamespaces
impl PartialEq<RouteNamespaces> for RouteNamespaces
sourcefn eq(&self, other: &RouteNamespaces) -> bool
fn eq(&self, other: &RouteNamespaces) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &RouteNamespaces) -> bool
fn ne(&self, other: &RouteNamespaces) -> bool
This method tests for !=
.
sourceimpl Serialize for RouteNamespaces
impl Serialize for RouteNamespaces
impl StructuralPartialEq for RouteNamespaces
Auto Trait Implementations
impl RefUnwindSafe for RouteNamespaces
impl Send for RouteNamespaces
impl Sync for RouteNamespaces
impl Unpin for RouteNamespaces
impl UnwindSafe for RouteNamespaces
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