aboutsummaryrefslogtreecommitdiff
path: root/src/routes/messages.rs
blob: c4f2b5e51e2662d5760b6d9461f482683cb588b5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
use std::collections::HashMap;

trait Content {}

trait Message {
    fn name(&self) -> String;
}

#[derive(Serialize)]
pub struct Callback {
    pub path: Vec<String>,
    pub request: HashMap<String, String>,
}

impl Message for Callback {
    fn name(&self) -> String {
        String::from("CALLBACK")
    }
}