diff options
-rw-r--r-- | src/call/nameserver.rs | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/src/call/nameserver.rs b/src/call/nameserver.rs index 3b59646..178ac6f 100644 --- a/src/call/nameserver.rs +++ b/src/call/nameserver.rs @@ -1,4 +1,5 @@ -use super::Call; +use crate::response::nameserver::RecordInfo as RecordInfoResponse; +use super::*; use serde_derive::{Deserialize, Serialize}; @@ -21,6 +22,18 @@ pub struct RecordInfo { pub priority: Option<i32>, } +impl Call for RecordInfo { + fn method_name(&self) -> String { + String::from("nameserver.info") + } + + fn expected(&self) -> Vec<i32> { + vec![1000] + } +} + +impl Response<RecordInfoResponse> for RecordInfo {} + /// Update the records with the specified IDs. /// Any `None` variants will remain unchanged. #[derive(Clone, Debug, Deserialize, Serialize)] @@ -59,3 +72,5 @@ impl Call for RecordUpdate { vec![1000] } } + +impl Response<()> for RecordUpdate {} |