pub enum KubernetesRouteProfile {
Variant0 {
annotations: HashMap<String, String>,
controller: Option<String>,
ingress_class_name: String,
labels: HashMap<String, String>,
provider: Option<KubernetesRouteProviderOptions>,
route_api: KubernetesRouteProfileVariant0RouteApi,
},
Variant1 {
annotations: HashMap<String, String>,
controller: Option<String>,
gateway_class_name: String,
labels: HashMap<String, String>,
listener_port: i32,
provider: Option<KubernetesRouteProviderOptions>,
route_api: KubernetesRouteProfileVariant1RouteApi,
},
}Expand description
Kubernetes route API selected for public endpoints.
JSON schema
{
"description": "Kubernetes route API selected for public endpoints.",
"oneOf": [
{
"description": "`networking.k8s.io/v1` Ingress route profile.",
"allOf": [
{
"$ref": "#/components/schemas/KubernetesIngressRouteProfile"
},
{
"type": "object",
"required": [
"routeApi"
],
"properties": {
"routeApi": {
"type": "string",
"enum": [
"ingress"
]
}
}
}
]
},
{
"description": "Gateway API `Gateway` + `HTTPRoute` route profile.",
"allOf": [
{
"$ref": "#/components/schemas/KubernetesGatewayRouteProfile"
},
{
"type": "object",
"required": [
"routeApi"
],
"properties": {
"routeApi": {
"type": "string",
"enum": [
"gateway"
]
}
}
}
]
}
]
}Variants§
Variant0
Fields
§
provider: Option<KubernetesRouteProviderOptions>Provider-specific route options that are required by the selected class.
§
route_api: KubernetesRouteProfileVariant0RouteApiVariant1
Fields
§
provider: Option<KubernetesRouteProviderOptions>Provider-specific route options that are required by the selected class.
§
route_api: KubernetesRouteProfileVariant1RouteApiTrait Implementations§
Source§impl Clone for KubernetesRouteProfile
impl Clone for KubernetesRouteProfile
Source§impl Debug for KubernetesRouteProfile
impl Debug for KubernetesRouteProfile
Source§impl<'de> Deserialize<'de> for KubernetesRouteProfile
impl<'de> Deserialize<'de> for KubernetesRouteProfile
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 From<&KubernetesRouteProfile> for KubernetesRouteProfile
impl From<&KubernetesRouteProfile> for KubernetesRouteProfile
Source§fn from(value: &KubernetesRouteProfile) -> Self
fn from(value: &KubernetesRouteProfile) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Forget for KubernetesRouteProfile
impl Freeze for KubernetesRouteProfile
impl RefUnwindSafe for KubernetesRouteProfile
impl Send for KubernetesRouteProfile
impl Sync for KubernetesRouteProfile
impl Unpin for KubernetesRouteProfile
impl UnsafeUnpin for KubernetesRouteProfile
impl UnwindSafe for KubernetesRouteProfile
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