pub struct KeyboardFeatures {Show 24 fields
pub typing_rate: f64,
pub pause_count: u32,
pub mean_pause_ms: f64,
pub latency_variability: f64,
pub hold_time_mean: f64,
pub burst_index: f64,
pub session_continuity: f64,
pub typing_tap_count: u32,
pub typing_cadence_stability: f64,
pub typing_gap_ratio: f64,
pub typing_interaction_intensity: f64,
pub keyboard_scroll_rate: f64,
pub navigation_key_count: u32,
pub backspace_count: u32,
pub delete_count: u32,
pub correction_rate: f64,
pub typing_efficiency: f64,
pub enter_count: u32,
pub tab_count: u32,
pub escape_count: u32,
pub modifier_key_count: u32,
pub function_key_count: u32,
pub shortcut_count: u32,
pub shortcut_rate: f64,
}Expand description
Keyboard-derived behavioral features.
Note: Typing metrics (typing_rate, typing_tap_count, etc.) are computed from typing keys ONLY. Navigation keys (arrows, page up/down, home/end) are tracked separately via keyboard_scroll_rate to avoid inflating typing metrics during navigation-heavy text editing sessions.
Fields§
§typing_rate: f64Typing keys per second (excludes navigation keys)
pause_count: u32Number of idle gaps (pauses) per window
mean_pause_ms: f64Average pause duration in milliseconds
latency_variability: f64Standard deviation of inter-key intervals
hold_time_mean: f64Average key hold duration in milliseconds
burst_index: f64Burstiness index (0-1, higher = more bursty)
session_continuity: f64Ratio of active typing time to total window time
typing_tap_count: u32Total number of discrete typing tap events (excludes navigation keys)
typing_cadence_stability: f64Normalized rhythmic consistency score (0-1, higher = more regular timing)
typing_gap_ratio: f64Proportion of inter-tap intervals classified as gaps
typing_interaction_intensity: f64Composite metric combining speed, cadence stability, and gap behavior (0-1)
keyboard_scroll_rate: f64Navigation key events per second (arrow keys, page up/down, home/end) Tracked separately from typing to distinguish keyboard scrolling from mouse scrolling
Total navigation key events in the window
backspace_count: u32Backspace key presses
delete_count: u32Forward delete key presses
correction_rate: f64(backspace + delete) / typing_tap_count (0-1+)
typing_efficiency: f641.0 - correction_rate, clamped to 0-1
enter_count: u32Enter/Return key presses
tab_count: u32Tab key presses
escape_count: u32Escape key presses
modifier_key_count: u32Modifier key events (Shift, Control, Option, Command)
function_key_count: u32Function key presses (F1-F12)
shortcut_count: u32Total shortcuts detected in the window
shortcut_rate: f64Shortcuts per second
Trait Implementations§
Source§impl Clone for KeyboardFeatures
impl Clone for KeyboardFeatures
Source§fn clone(&self) -> KeyboardFeatures
fn clone(&self) -> KeyboardFeatures
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more