aboutsummaryrefslogtreecommitdiffstats
path: root/src/agent.rs
blob: 4b9ac207c826a76a6cfb7d03df30dc5768f2db06 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#[derive(serde::Serialize, serde::Deserialize, Debug)]
pub struct Message {
    pub tty: Option<String>,
    pub action: Action,
}

#[derive(serde::Serialize, serde::Deserialize, Debug)]
#[serde(tag = "type")]
pub enum Action {
    Login,
    Unlock,
    Sync,
    Decrypt { cipherstring: String },
    // add
    // update
    // remove
}