pub struct BinaryAgentResponse {
pub correlation_id: String,
pub decision: Decision,
pub request_headers: Vec<HeaderOp>,
pub response_headers: Vec<HeaderOp>,
pub needs_more: bool,
}Expand description
Binary agent response.
Wire format:
- correlation_id: length-prefixed string
- decision_type: u8 (0=Allow, 1=Block, 2=Redirect, 3=Challenge)
- decision_data: varies by type
- request_headers_ops: count (u16) + ops
- response_headers_ops: count (u16) + ops
- needs_more: u8
Fields§
§correlation_id: String§decision: Decision§request_headers: Vec<HeaderOp>§response_headers: Vec<HeaderOp>§needs_more: boolImplementations§
Trait Implementations§
Source§impl Clone for BinaryAgentResponse
impl Clone for BinaryAgentResponse
Source§fn clone(&self) -> BinaryAgentResponse
fn clone(&self) -> BinaryAgentResponse
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for BinaryAgentResponse
impl RefUnwindSafe for BinaryAgentResponse
impl Send for BinaryAgentResponse
impl Sync for BinaryAgentResponse
impl Unpin for BinaryAgentResponse
impl UnwindSafe for BinaryAgentResponse
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
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>
Wrap the input message
T in a tonic::Request