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§
Source§impl Clone for RouteNamespaces
impl Clone for RouteNamespaces
Source§fn clone(&self) -> RouteNamespaces
fn clone(&self) -> RouteNamespaces
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for RouteNamespaces
impl Debug for RouteNamespaces
Source§impl<'de> Deserialize<'de> for RouteNamespaces
impl<'de> Deserialize<'de> for RouteNamespaces
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl JsonSchema for RouteNamespaces
impl JsonSchema for RouteNamespaces
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn 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 moreSource§impl PartialEq for RouteNamespaces
impl PartialEq for RouteNamespaces
Source§impl Serialize for RouteNamespaces
impl Serialize for RouteNamespaces
impl StructuralPartialEq for RouteNamespaces
Auto Trait Implementations§
impl Freeze for RouteNamespaces
impl RefUnwindSafe for RouteNamespaces
impl Send for RouteNamespaces
impl Sync for RouteNamespaces
impl Unpin for RouteNamespaces
impl UnwindSafe for RouteNamespaces
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more