Skip to repository content

tenant.openagents/omega

No repository description is available.

OpenAgents Git authority 2026-07-28T01:50:50.560Z Public web read
NIP-34 coordinate30617:7649603503856e5148d571eac2766b288a8ff1e9e35d380337a1d2b0015b4f92:omega
MaintainersHidden in public view
References2 branches · 1 tag
Read-only clonegit clone https://openagents.com/git/tenant.openagents/omega.git
Browse files

which_key_settings.rs

19 lines · 528 B · rust
1use settings::{RegisterSetting, Settings, SettingsContent, WhichKeySettingsContent};
2
3#[derive(Debug, Clone, Copy, RegisterSetting)]
4pub struct WhichKeySettings {
5    pub enabled: bool,
6    pub delay_ms: u64,
7}
8
9impl Settings for WhichKeySettings {
10    fn from_settings(content: &SettingsContent) -> Self {
11        let which_key: &WhichKeySettingsContent = content.which_key.as_ref().unwrap();
12
13        Self {
14            enabled: which_key.enabled.unwrap(),
15            delay_ms: which_key.delay_ms.unwrap(),
16        }
17    }
18}
19
Served at tenant.openagents/omega Member data and write actions are omitted.