pub struct GRPCRouteRulesBackendRefsFilters {
pub extension_ref: Option<GRPCRouteRulesBackendRefsFiltersExtensionRef>,
pub request_header_modifier: Option<GRPCRouteRulesBackendRefsFiltersRequestHeaderModifier>,
pub request_mirror: Option<GRPCRouteRulesBackendRefsFiltersRequestMirror>,
pub response_header_modifier: Option<GRPCRouteRulesBackendRefsFiltersResponseHeaderModifier>,
pub type: GRPCRouteRulesBackendRefsFiltersType,
}
Expand description
GRPCRouteFilter defines processing steps that must be completed during the request or response lifecycle. GRPCRouteFilters are meant as an extension point to express processing that may be done in Gateway implementations. Some examples include request or response modification, implementing authentication strategies, rate-limiting, and traffic shaping. API guarantee/conformance is defined based on the type of the filter.
Fields§
§extension_ref: Option<GRPCRouteRulesBackendRefsFiltersExtensionRef>
ExtensionRef is an optional, implementation-specific extension to the “filter” behavior. For example, resource “myroutefilter” in group “networking.example.net”). ExtensionRef MUST NOT be used for core and extended filters.
Support: Implementation-specific
This filter can be used multiple times within the same rule.
request_header_modifier: Option<GRPCRouteRulesBackendRefsFiltersRequestHeaderModifier>
RequestHeaderModifier defines a schema for a filter that modifies request headers.
Support: Core
request_mirror: Option<GRPCRouteRulesBackendRefsFiltersRequestMirror>
RequestMirror defines a schema for a filter that mirrors requests. Requests are sent to the specified destination, but responses from that destination are ignored.
This filter can be used multiple times within the same rule. Note that not all implementations will be able to support mirroring to multiple backends.
Support: Extended
response_header_modifier: Option<GRPCRouteRulesBackendRefsFiltersResponseHeaderModifier>
ResponseHeaderModifier defines a schema for a filter that modifies response headers.
Support: Extended
type: GRPCRouteRulesBackendRefsFiltersType
Type identifies the type of filter to apply. As with other API fields, types are classified into three conformance levels:
-
Core: Filter types and their corresponding configuration defined by “Support: Core” in this package, e.g. “RequestHeaderModifier”. All implementations supporting GRPCRoute MUST support core filters.
-
Extended: Filter types and their corresponding configuration defined by “Support: Extended” in this package, e.g. “RequestMirror”. Implementers are encouraged to support extended filters.
-
Implementation-specific: Filters that are defined and supported by specific vendors. In the future, filters showing convergence in behavior across multiple implementations will be considered for inclusion in extended or core conformance levels. Filter-specific configuration for such filters is specified using the ExtensionRef field.
Type
MUST be set to “ExtensionRef” for custom filters.
Implementers are encouraged to define custom implementation types to extend the core API with implementation-specific behavior.
If a reference to a custom filter type cannot be resolved, the filter MUST NOT be skipped. Instead, requests that would have been processed by that filter MUST receive a HTTP error response.
Trait Implementations§
source§impl Clone for GRPCRouteRulesBackendRefsFilters
impl Clone for GRPCRouteRulesBackendRefsFilters
source§fn clone(&self) -> GRPCRouteRulesBackendRefsFilters
fn clone(&self) -> GRPCRouteRulesBackendRefsFilters
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for GRPCRouteRulesBackendRefsFilters
impl Default for GRPCRouteRulesBackendRefsFilters
source§fn default() -> GRPCRouteRulesBackendRefsFilters
fn default() -> GRPCRouteRulesBackendRefsFilters
source§impl<'de> Deserialize<'de> for GRPCRouteRulesBackendRefsFilters
impl<'de> Deserialize<'de> for GRPCRouteRulesBackendRefsFilters
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>,
source§impl JsonSchema for GRPCRouteRulesBackendRefsFilters
impl JsonSchema for GRPCRouteRulesBackendRefsFilters
source§fn schema_name() -> String
fn schema_name() -> String
source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
source§fn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
$ref
keyword. Read moresource§impl PartialEq for GRPCRouteRulesBackendRefsFilters
impl PartialEq for GRPCRouteRulesBackendRefsFilters
source§fn eq(&self, other: &GRPCRouteRulesBackendRefsFilters) -> bool
fn eq(&self, other: &GRPCRouteRulesBackendRefsFilters) -> bool
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for GRPCRouteRulesBackendRefsFilters
Auto Trait Implementations§
impl Freeze for GRPCRouteRulesBackendRefsFilters
impl RefUnwindSafe for GRPCRouteRulesBackendRefsFilters
impl Send for GRPCRouteRulesBackendRefsFilters
impl Sync for GRPCRouteRulesBackendRefsFilters
impl Unpin for GRPCRouteRulesBackendRefsFilters
impl UnwindSafe for GRPCRouteRulesBackendRefsFilters
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)