mirror of
https://github.com/zkemail/zk-regex.git
synced 2026-01-09 13:48:00 -05:00
chore: camelCase for wasm bindings
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user