chore: camelCase for wasm bindings

This commit is contained in:
Dimitri
2024-12-13 12:08:44 +07:00
parent 7002a2179e
commit 86d20c71c2

View File

@@ -4,12 +4,14 @@ use thiserror::Error;
/// A configuration of decomposed regexes.
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct DecomposedRegexConfig {
pub parts: Vec<RegexPartConfig>,
}
/// Decomposed regex part.
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct RegexPartConfig {
/// A flag indicating whether the substring matching with `regex_def` should be exposed.
pub is_public: bool,