commands: derive Deserialize for commands results

This commit is contained in:
Antoine Poinsot 2022-08-17 19:39:39 +02:00
parent fe5de96312
commit 798bf67e21
No known key found for this signature in database
GPG Key ID: E13FC145CD3F4304

View File

@ -45,13 +45,13 @@ impl DaemonControl {
}
}
#[derive(Debug, Clone, Serialize)]
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct GetInfoDescriptors {
pub main: descriptor::Descriptor<descriptor::DescriptorPublicKey>,
}
/// Information about the daemon
#[derive(Debug, Clone, Serialize)]
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct GetInfoResult {
pub version: String,
pub network: bitcoin::Network,