diff options
| author | 魏曹先生 <1992414357@qq.com> | 2026-05-03 01:31:04 +0800 |
|---|---|---|
| committer | 魏曹先生 <1992414357@qq.com> | 2026-05-03 01:31:04 +0800 |
| commit | 8422e0ada52d8036c32257d84f069776e520079e (patch) | |
| tree | b3d3c1aabc40d1c4ab35467fef6f68b6100779a4 /mingling_core/src/program | |
| parent | 8f44a3e779fb8ee66c8f51b49d6c77e5a80e3821 (diff) | |
Add missing articles and improve documentation
Diffstat (limited to 'mingling_core/src/program')
| -rw-r--r-- | mingling_core/src/program/config.rs | 10 | ||||
| -rw-r--r-- | mingling_core/src/program/string_vec.rs | 1 |
2 files changed, 11 insertions, 0 deletions
diff --git a/mingling_core/src/program/config.rs b/mingling_core/src/program/config.rs index dcab526..ac541fd 100644 --- a/mingling_core/src/program/config.rs +++ b/mingling_core/src/program/config.rs @@ -46,14 +46,24 @@ pub struct ProgramUserContext { #[cfg(feature = "general_renderer")] #[derive(Debug, Clone, Default)] +/// Settings for the general renderer output format. +/// +/// Controls how structured data (e.g., JSON, YAML, TOML) is rendered to stdout. pub enum GeneralRendererSetting { + /// Do not render structured output (use default formatting). #[default] Disable, + /// Render output as compact JSON. Json, + /// Render output as pretty-printed JSON. JsonPretty, + /// Render output as YAML. Yaml, + /// Render output as TOML. Toml, + /// Render output as RON. Ron, + /// Render output as pretty-printed RON. RonPretty, } diff --git a/mingling_core/src/program/string_vec.rs b/mingling_core/src/program/string_vec.rs index 478ad74..fd0e2cb 100644 --- a/mingling_core/src/program/string_vec.rs +++ b/mingling_core/src/program/string_vec.rs @@ -1,4 +1,5 @@ #[derive(Debug, Clone)] +#[doc(hidden)] pub struct StringVec { vec: Vec<String>, } |
