pub struct Context {Show 13 fields
pub dns_resolved: Option<bool>,
pub dns_error: Option<String>,
pub dns_host: Option<String>,
pub tls_handshake_ms: Option<u64>,
pub tls_handshake_failed: Option<bool>,
pub tls_failure_reason: Option<String>,
pub tls_peer: Option<String>,
pub client_clock_skew_secs: Option<i64>,
pub signing_required: Option<bool>,
pub signature_tolerance_secs: Option<u64>,
pub body_mutated_before_verification: Option<bool>,
pub elapsed_ms_before_abort: Option<u64>,
pub connection_error: Option<String>,
}Expand description
Environmental observations from the caller’s own network stack — things that don’t appear in the HTTP transaction itself.
All fields are Option and #[serde(default)] so a fixture only
needs to set the ones relevant to its failure mode. Unset fields are
“we didn’t observe this,” not “we observed it as zero.”
Fields§
§dns_resolved: Option<bool>Some(false) means DNS resolution was attempted and failed;
Some(true) or None means it either succeeded or wasn’t
reached.
dns_error: Option<String>§dns_host: Option<String>§tls_handshake_ms: Option<u64>Time spent in TLS handshake on a successful connection.
tls_handshake_failed: Option<bool>Some(true) indicates the handshake was attempted and failed.
tls_failure_reason: Option<String>§tls_peer: Option<String>§client_clock_skew_secs: Option<i64>Skew between the client’s clock and the server’s, in seconds.
Sign indicates direction (negative = client behind server).
Absolute value is what gets compared to signature_tolerance_secs.
signing_required: Option<bool>Set by webhook-receiver fixtures; toggles whether clock-skew evidence is even meaningful for this case.
signature_tolerance_secs: Option<u64>HMAC tolerance window in seconds.
body_mutated_before_verification: Option<bool>Set when middleware re-encoded the JSON body between the wire and
HMAC verification. Drives the BodyMutatedBeforeVerification
evidence variant.
elapsed_ms_before_abort: Option<u64>Wall-clock time the client spent waiting before giving up on a non-arriving response.
connection_error: Option<String>Free-text error string from the caller’s network stack. Used for rendering only; rules don’t read this directly.