aboutsummaryrefslogtreecommitdiffstats
path: root/src/agent.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/agent.rs')
-rw-r--r--src/agent.rs10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/agent.rs b/src/agent.rs
index 4b9ac20..c64acc9 100644
--- a/src/agent.rs
+++ b/src/agent.rs
@@ -1,5 +1,5 @@
#[derive(serde::Serialize, serde::Deserialize, Debug)]
-pub struct Message {
+pub struct Request {
pub tty: Option<String>,
pub action: Action,
}
@@ -15,3 +15,11 @@ pub enum Action {
// update
// remove
}
+
+#[derive(serde::Serialize, serde::Deserialize, Debug)]
+#[serde(tag = "type")]
+pub enum Response {
+ Ack,
+ Error { error: String },
+ Decrypt { plaintext: String },
+}