Struct k8s_gateway_api::GatewayClassSpec
source · [−]pub struct GatewayClassSpec {
pub controller_name: GatewayController,
pub paramters_ref: Option<ParametersReference>,
pub description: Option<String>,
}
Fields
controller_name: GatewayController
ControllerName is the name of the controller that is managing Gateways of this class. The value of this field MUST be a domain prefixed path.
Example: “example.net/gateway-controller”.
This field is not mutable and cannot be empty.
paramters_ref: Option<ParametersReference>
ParametersRef is a reference to a resource that contains the configuration parameters corresponding to the GatewayClass. This is optional if the controller does not require any additional configuration.
ParametersRef can reference a standard Kubernetes resource, i.e. ConfigMap, or an implementation-specific custom resource. The resource can be cluster-scoped or namespace-scoped.
If the referent cannot be found, the GatewayClass’s “InvalidParameters” status condition will be true.
Support: Custom
description: Option<String>
Description helps describe a GatewayClass with more details.
Trait Implementations
sourceimpl Clone for GatewayClassSpec
impl Clone for GatewayClassSpec
sourcefn clone(&self) -> GatewayClassSpec
fn clone(&self) -> GatewayClassSpec
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 GatewayClassSpec
impl Debug for GatewayClassSpec
sourceimpl<'de> Deserialize<'de> for GatewayClassSpec
impl<'de> Deserialize<'de> for GatewayClassSpec
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 GatewayClassSpec
impl JsonSchema for GatewayClassSpec
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 Serialize for GatewayClassSpec
impl Serialize for GatewayClassSpec
Auto Trait Implementations
impl RefUnwindSafe for GatewayClassSpec
impl Send for GatewayClassSpec
impl Sync for GatewayClassSpec
impl Unpin for GatewayClassSpec
impl UnwindSafe for GatewayClassSpec
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