aboutsummaryrefslogtreecommitdiff
path: root/src/call/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/call/mod.rs')
-rw-r--r--src/call/mod.rs7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/call/mod.rs b/src/call/mod.rs
index f8fe0a2..517f459 100644
--- a/src/call/mod.rs
+++ b/src/call/mod.rs
@@ -1,8 +1,11 @@
-// A call to the API.
-pub trait Call: Clone + std::fmt::Debug + Into<xmlrpc::Value> {
+/// A call to the API.
+pub trait Call: Clone + std::fmt::Debug + serde::Serialize {
fn method_name(&self) -> String;
fn expected(&self) -> Vec<i32>;
}
+/// This trait indicates the response data type to this a `Call`.
+pub trait Response<T> {}
+
pub mod account;
pub mod nameserver;