Add replacement support

This commit is contained in:
2025-05-22 10:26:19 +08:00
parent f64a702ef5
commit 3622cac8a8
6 changed files with 46 additions and 6 deletions

View File

@@ -1,5 +1,6 @@
use clap::ValueEnum;
use serde::{Deserialize, Serialize};
use std::collections::HashMap;
#[derive(Copy, Clone, Serialize, Deserialize, Debug)]
#[serde(untagged, rename_all = "camelCase")]
@@ -235,3 +236,9 @@ pub struct NameTableCell {
#[serde(rename = "Count")]
pub count: usize,
}
#[derive(Debug, Serialize, Deserialize)]
pub struct ReplacementTable {
#[serde(flatten)]
pub map: HashMap<String, String>,
}