pub struct ProcessingRequest {
pub metadata_context: Option<Metadata>,
pub attributes: HashMap<String, Struct>,
pub observability_mode: bool,
pub request: Option<Request>,
}
Expand description
This represents the different types of messages that Envoy can send to an external processing server. [#next-free-field: 11]
Fields§
§metadata_context: Option<Metadata>
Dynamic metadata associated with the request.
attributes: HashMap<String, Struct>
The values of properties selected by the request_attributes
or response_attributes
list in the configuration. Each entry
in the list is populated from the standard
:ref:attributes <arch_overview_attributes>
supported across Envoy.
observability_mode: bool
Specify whether the filter that sent this request is running in :ref:observability_mode <envoy_v3_api_field_extensions.filters.http.ext_proc.v3.ExternalProcessor.observability_mode>
and defaults to false.
- A value of
false
indicates that the server must respond to this message by either sending back a matching ProcessingResponse message, or by closing the stream. - A value of
true
indicates that the server should not respond to this message, as any responses will be ignored. However, it may still close the stream to indicate that no more messages are needed.
request: Option<Request>
Each request message will include one of the following sub-messages. Which ones are set for a particular HTTP request/response depend on the processing mode.
Trait Implementations§
Source§impl Clone for ProcessingRequest
impl Clone for ProcessingRequest
Source§fn clone(&self) -> ProcessingRequest
fn clone(&self) -> ProcessingRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for ProcessingRequest
impl Debug for ProcessingRequest
Source§impl Default for ProcessingRequest
impl Default for ProcessingRequest
Source§impl Message for ProcessingRequest
impl Message for ProcessingRequest
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 Name for ProcessingRequest
impl Name for ProcessingRequest
Source§const NAME: &'static str = "ProcessingRequest"
const NAME: &'static str = "ProcessingRequest"
Message
.
This name is the same as it appears in the source .proto file, e.g. FooBar
.Source§const PACKAGE: &'static str = "envoy.service.ext_proc.v3"
const PACKAGE: &'static str = "envoy.service.ext_proc.v3"
.
, e.g. google.protobuf
.Source§fn full_name() -> String
fn full_name() -> String
Message
.
It’s prefixed with the package name and names of any parent messages,
e.g. google.rpc.BadRequest.FieldViolation
.
By default, this is the package name followed by the message name.
Fully-qualified names must be unique within a domain of Type URLs.Source§impl PartialEq for ProcessingRequest
impl PartialEq for ProcessingRequest
impl StructuralPartialEq for ProcessingRequest
Auto Trait Implementations§
impl Freeze for ProcessingRequest
impl RefUnwindSafe for ProcessingRequest
impl Send for ProcessingRequest
impl Sync for ProcessingRequest
impl Unpin for ProcessingRequest
impl UnwindSafe for ProcessingRequest
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<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