pub struct RequestValidationOptions {
pub reject_unknown_method: bool,
pub reject_unknown_query_parameters: bool,
pub reject_binding_body_field_collisions: bool,
}Fields§
§reject_unknown_method: boolBy default, a request that cannot be mapped to any specified gRPC
: ref:services <envoy_v3_api_field_extensions.filters.http.grpc_json_transcoder.v3.GrpcJsonTranscoder.services>
will pass-through this filter.
When set to true, the request will be rejected with a HTTP 404 Not Found.
reject_unknown_query_parameters: boolBy default, a request with query parameters that cannot be mapped to the gRPC request message
will pass-through this filter.
When set to true, the request will be rejected with a HTTP 400 Bad Request.
The fields
: ref:ignore_unknown_query_parameters <envoy_v3_api_field_extensions.filters.http.grpc_json_transcoder.v3.GrpcJsonTranscoder.ignore_unknown_query_parameters>,
: ref:capture_unknown_query_parameters <envoy_v3_api_field_extensions.filters.http.grpc_json_transcoder.v3.GrpcJsonTranscoder.capture_unknown_query_parameters>,
and
: ref:ignored_query_parameters <envoy_v3_api_field_extensions.filters.http.grpc_json_transcoder.v3.GrpcJsonTranscoder.ignored_query_parameters>
have priority over this strict validation behavior.
reject_binding_body_field_collisions: bool“id: 456” in the body will override “id=123” in the binding.
If this field is set to true, the request will be rejected if the binding value is different from the body value.
Trait Implementations§
Source§impl Clone for RequestValidationOptions
impl Clone for RequestValidationOptions
Source§fn clone(&self) -> RequestValidationOptions
fn clone(&self) -> RequestValidationOptions
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for RequestValidationOptions
impl Debug for RequestValidationOptions
Source§impl Default for RequestValidationOptions
impl Default for RequestValidationOptions
Source§impl Hash for RequestValidationOptions
impl Hash for RequestValidationOptions
Source§impl Message for RequestValidationOptions
impl Message for RequestValidationOptions
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self.Source§impl PartialEq for RequestValidationOptions
impl PartialEq for RequestValidationOptions
impl Copy for RequestValidationOptions
impl Eq for RequestValidationOptions
impl StructuralPartialEq for RequestValidationOptions
Auto Trait Implementations§
impl Freeze for RequestValidationOptions
impl RefUnwindSafe for RequestValidationOptions
impl Send for RequestValidationOptions
impl Sync for RequestValidationOptions
impl Unpin for RequestValidationOptions
impl UnwindSafe for RequestValidationOptions
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request