summaryrefslogtreecommitdiff
path: root/src/output/accounts.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/output/accounts.rs')
-rw-r--r--src/output/accounts.rs15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/output/accounts.rs b/src/output/accounts.rs
new file mode 100644
index 0000000..d29539a
--- /dev/null
+++ b/src/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,
+}