pub struct PayloadRecord {
pub meta: Value,
pub body: Option<BodyCopy>,
pub digest: String,
pub bytes: u64,
pub truncated: bool,
pub masked_headers: Vec<String>,
}Expand description
One side of a call: what it sent, or what came back.
Fields§
§meta: ValueThe structured part: a method and URL, a tool, a model, a status. Capped like a decision’s context, with credential-bearing headers masked.
body: Option<BodyCopy>A copy of the body, capped at DecisionLogConfig::max_payload_bytes.
digest: StringSHA-256, hex, of the full meta and body (masked headers excluded).
bytes: u64The payload’s full size, counted before any cap or masking: the body’s bytes, or the meta’s when there is no body.
truncated: boolThe meta or body copy was cut, or dropped for the recorder’s byte budget.
masked_headers: Vec<String>Header names whose values were masked: at most 64, each capped like a meta string.
Trait Implementations§
Source§impl Clone for PayloadRecord
impl Clone for PayloadRecord
Source§impl Debug for PayloadRecord
impl Debug for PayloadRecord
Source§impl<'de> Deserialize<'de> for PayloadRecord
impl<'de> Deserialize<'de> for PayloadRecord
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>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for PayloadRecord
impl RefUnwindSafe for PayloadRecord
impl Send for PayloadRecord
impl Sync for PayloadRecord
impl Unpin for PayloadRecord
impl UnsafeUnpin for PayloadRecord
impl UnwindSafe for PayloadRecord
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