Expand description
Data model for VpsRecord (schema v3) — domain newtypes (G-TYPE-*).
Passwords use SecretString for automatic zeroize via Drop. On-disk TOML is
plaintext (mode 0o600) or encrypted (sshcli-enc:v1:) when a primary key exists.
Debug is customized to NEVER expose sensitive values.
Schema v3: English wire keys on serialize (name, port, username, …).
Deserialize accepts both EN and legacy Portuguese aliases (nome, porta, …).
Field invariants are encoded in crate::domain newtypes (parse, don’t validate).
Structs§
- VpsRecord
- VPS host record in the configuration file.
Constants§
- CURRENT_
SCHEMA_ VERSION - Current schema version of the
config.tomlfile. - DEFAULT_
MAX_ COMMAND_ CHARS - Default character limit for the command (one-shot maxChars).
- DEFAULT_
MAX_ OUTPUT_ CHARS - Default character limit for captured output.
- DEFAULT_
TIMEOUT_ MS - Default timeout in milliseconds (60s).
Functions§
- effective_
char_ limit - Effective limit from a
CharLimit. - effective_
limit - Converts a config wire limit into the effective value for truncation/validation.
- parse_
char_ limit - Parses a limit string (
"none","0", or a number) into wireusize.