aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
author魏曹先生 <1992414357@qq.com>2026-06-26 06:08:12 +0800
committer魏曹先生 <1992414357@qq.com>2026-06-26 06:08:12 +0800
commite735671acb3a81e1b7e334e56b9ef3963ba0c2fc (patch)
tree46562d6630bb1582b41b6741a7a4f482febf84da /README.md
parent473cd8e575d03d8bd5439e81cb6835f56a1e964f (diff)
feat(core): decouple structured output from Groupped trait
Introduce `StructuralData` sealed trait and `pack_structural!` / `group_structural!` / `derive(StructuralData)` macros to control structured rendering separately from grouping. `Groupped` no longer requires `Serialize`.
Diffstat (limited to 'README.md')
-rw-r--r--README.md3
1 files changed, 2 insertions, 1 deletions
diff --git a/README.md b/README.md
index b5d3362..f6e782d 100644
--- a/README.md
+++ b/README.md
@@ -669,11 +669,12 @@ With the `general_renderer` feature, users can add `--json` or `--yaml` flags to
use mingling::{prelude::*, setup::GeneralRendererSetup};
use mingling::Groupped;
+use mingling::StructuralData;
use serde::Serialize;
dispatcher!("render", CMDRender => EntryRender);
-#[derive(Default, Serialize, Groupped)]
+#[derive(Default, StructuralData, Serialize, Groupped)]
struct ResultInfo {
name: String,
age: i32,