From c264369e949df7fd0c1df4d0daded097d748365b Mon Sep 17 00:00:00 2001 From: loziniak Date: Sat, 23 Sep 2023 04:20:19 +0200 Subject: [PATCH] chore(client): serialize ClientEvent --- sn_client/src/event.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sn_client/src/event.rs b/sn_client/src/event.rs index 29927756fd..a56649f84a 100644 --- a/sn_client/src/event.rs +++ b/sn_client/src/event.rs @@ -8,6 +8,7 @@ use super::error::Result; +use serde::Serialize; use tokio::sync::broadcast; // Channel where events will be broadcasted by the client. @@ -35,7 +36,7 @@ impl ClientEventsChannel { } /// Type of events broadcasted by the client to the public API. -#[derive(Clone, Debug)] +#[derive(Clone, Debug, Serialize)] pub enum ClientEvent { /// The client has been connected to the network ConnectedToNetwork,