From 8422e0ada52d8036c32257d84f069776e520079e Mon Sep 17 00:00:00 2001 From: 魏曹先生 <1992414357@qq.com> Date: Sun, 3 May 2026 01:31:04 +0800 Subject: Add missing articles and improve documentation --- mingling_core/src/program/config.rs | 10 ++++++++++ mingling_core/src/program/string_vec.rs | 1 + 2 files changed, 11 insertions(+) (limited to 'mingling_core/src/program') 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, } -- cgit