Skip to main content

Module types

Module types 

Source
Expand description

Configuration type definitions: settings, themes, widgets, connections, bookmarks.

Structs§

BlockDef
Block definition for widgets.
ConfigError
Configuration error from parsing.
ConnKeywords
Per-connection configuration keywords. Matches Go’s wconfig.ConnKeywords.
FileDef
File definition for block widgets.
FullConfigType
Complete application configuration. Matches Go’s wconfig.FullConfigType.
MimeTypeConfigType
MIME type display configuration.
SettingsType
Application settings. Matches Go’s wconfig.SettingsType JSON tags. Fields use pointer-like Option for nullable booleans/numbers to distinguish “not set” from “false/0”.
TermThemeType
Terminal color theme.
WebBookmark
Web bookmark.
WebhookConfigType
Webhook integration configuration.
WidgetConfigType
Widget configuration.

Functions§

deserialize_connections 🔒
settings.json → connections, entry by entry. An entry that doesn’t parse (say "term:durable": "yes") is skipped with a warning; failing it would fail the whole SettingsType, which resets every setting at startup and drops every later edit on reload. The entry stays on disk untouched.
deserialize_string_list 🔒
A list of strings such as widget:pinned, read leniently: a value that isn’t a list is ignored with a warning and non-string items are dropped. Failing it would fail the whole SettingsType, as the note on deserialize_connections explains.
is_false 🔒
is_zero_f32 🔒
is_zero_f64 🔒
is_zero_i32 🔒