From 798bf67e21977ad18ee680a14e23e534f64a3ea5 Mon Sep 17 00:00:00 2001 From: Antoine Poinsot Date: Wed, 17 Aug 2022 19:39:39 +0200 Subject: [PATCH] commands: derive Deserialize for commands results --- src/commands/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/commands/mod.rs b/src/commands/mod.rs index 37a81aea..f4c56fc8 100644 --- a/src/commands/mod.rs +++ b/src/commands/mod.rs @@ -45,13 +45,13 @@ impl DaemonControl { } } -#[derive(Debug, Clone, Serialize)] +#[derive(Debug, Clone, Serialize, Deserialize)] pub struct GetInfoDescriptors { pub main: descriptor::Descriptor, } /// Information about the daemon -#[derive(Debug, Clone, Serialize)] +#[derive(Debug, Clone, Serialize, Deserialize)] pub struct GetInfoResult { pub version: String, pub network: bitcoin::Network,