summaryrefslogtreecommitdiff
path: root/src/legacy_json_output/accounts.rs
diff options
context:
space:
mode:
author魏曹先生 <1992414357@qq.com>2026-01-23 06:01:58 +0800
committer魏曹先生 <1992414357@qq.com>2026-01-23 06:01:58 +0800
commitaee17b68b2b213553cd06406a3a5713ec91f374d (patch)
treec808690e98d1e056249ac9775326cc6845b73acc /src/legacy_json_output/accounts.rs
parentfa51df5d748d9d9e3927c56d33e1437a05a8abb1 (diff)
Fix typo in legacy_json_output module name
Diffstat (limited to 'src/legacy_json_output/accounts.rs')
-rw-r--r--src/legacy_json_output/accounts.rs15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/legacy_json_output/accounts.rs b/src/legacy_json_output/accounts.rs
new file mode 100644
index 0000000..d29539a
--- /dev/null
+++ b/src/legacy_json_output/accounts.rs
@@ -0,0 +1,15 @@
+use just_enough_vcs::vcs::data::member::MemberId;
+use serde::{Deserialize, Serialize};
+use std::collections::HashMap;
+
+#[derive(Debug, Default, Serialize, Deserialize)]
+#[serde(rename_all = "PascalCase")]
+pub struct AccountListJsonResult {
+ pub result: HashMap<MemberId, AccountItem>,
+}
+
+#[derive(Debug, Serialize, Deserialize)]
+#[serde(rename_all = "PascalCase")]
+pub struct AccountItem {
+ pub has_private_key: bool,
+}