fume_core/
lib.rs

1use serde::de::DeserializeOwned;
2
3pub mod util;
4
5pub trait Api {
6    fn interface() -> &'static str;
7    fn method() -> &'static str;
8    fn version() -> &'static str;
9
10    type Response: DeserializeOwned;
11    // TODO: maybe return &str && &[]?
12    fn parameters(&self) -> impl Iterator<Item = (&str, &str)>;
13}