pub struct GrpcExtract {
pub messages: u32,
pub total_payload_bytes: u64,
pub max_message_len: u32,
pub fields: u32,
pub max_depth: u32,
pub depth_exceeded: bool,
pub fields_exceeded: bool,
pub compressed: bool,
pub malformed: bool,
pub leaves: Vec<String>,
}Expand description
Structural metrics + extracted content of a gRPC body.
Fields§
§messages: u32Number of length-prefixed frames.
total_payload_bytes: u64Sum of message lengths (the inspectable payload size).
max_message_len: u32Largest single frame length.
fields: u32Total protobuf fields walked (across frames).
max_depth: u32Deepest sub-message nesting actually entered (≤ max_depth).
depth_exceeded: boolA sub-message at the depth cap tried to nest deeper (depth-bomb signal).
fields_exceeded: boolThe field cap was hit (field-bomb signal); parsing of that message stopped.
compressed: boolAt least one frame carried the per-message COMPRESSED flag (payload not parsed).
malformed: boolFraming or wire-format parse hit something illegal/truncated.
leaves: Vec<String>UTF-8 length-delimited fields — content-inspection candidates (best-effort).
Trait Implementations§
Source§impl Clone for GrpcExtract
impl Clone for GrpcExtract
Source§fn clone(&self) -> GrpcExtract
fn clone(&self) -> GrpcExtract
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GrpcExtract
impl Debug for GrpcExtract
Source§impl Default for GrpcExtract
impl Default for GrpcExtract
Source§fn default() -> GrpcExtract
fn default() -> GrpcExtract
Returns the “default value” for a type. Read more
impl Eq for GrpcExtract
Source§impl PartialEq for GrpcExtract
impl PartialEq for GrpcExtract
Source§fn eq(&self, other: &GrpcExtract) -> bool
fn eq(&self, other: &GrpcExtract) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for GrpcExtract
Auto Trait Implementations§
impl Freeze for GrpcExtract
impl RefUnwindSafe for GrpcExtract
impl Send for GrpcExtract
impl Sync for GrpcExtract
impl Unpin for GrpcExtract
impl UnsafeUnpin for GrpcExtract
impl UnwindSafe for GrpcExtract
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