pub struct SessionLogEntry {
pub timestamp: String,
pub event: String,
pub session_id: String,
pub turn_count: usize,
pub risk_trajectory: Vec<String>,
pub current_risk: String,
pub historical_mean: f64,
pub client_ip_masked: String,
pub input_fingerprint: String,
}Fields§
§timestamp: StringISO 8601 UTC timestamp of the escalation event.
event: StringEvent type — always "escalation_detected" in this release.
session_id: StringSession identifier echoed from x-sbh-session.
turn_count: usizeNumber of turns in this session at the time of the event.
risk_trajectory: Vec<String>Full risk trajectory for the session window, e.g. ["low","low","high"].
current_risk: StringRisk label of the turn that triggered the alert.
historical_mean: f64Mean risk score of all turns except the triggering turn (0=low,1=medium,2=high).
client_ip_masked: StringClient IP with last two IPv4 octets (or last four IPv6 groups) masked.
input_fingerprint: StringFNV-1a-64 hex fingerprint of the raw user input — no plaintext stored.
Implementations§
Trait Implementations§
Source§impl Clone for SessionLogEntry
impl Clone for SessionLogEntry
Source§fn clone(&self) -> SessionLogEntry
fn clone(&self) -> SessionLogEntry
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 SessionLogEntry
impl Debug for SessionLogEntry
Source§impl<'de> Deserialize<'de> for SessionLogEntry
impl<'de> Deserialize<'de> for SessionLogEntry
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 SessionLogEntry
impl RefUnwindSafe for SessionLogEntry
impl Send for SessionLogEntry
impl Sync for SessionLogEntry
impl Unpin for SessionLogEntry
impl UnsafeUnpin for SessionLogEntry
impl UnwindSafe for SessionLogEntry
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