From 21abac8a8ee077e2bca976932b7218406c6017d3 Mon Sep 17 00:00:00 2001 From: Martin Hoffmann Date: Fri, 13 Dec 2024 14:33:36 +0100 Subject: [PATCH] Add serde traits to TalInfo. --- src/repository/tal.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/repository/tal.rs b/src/repository/tal.rs index bffbaa0..62f20f9 100644 --- a/src/repository/tal.rs +++ b/src/repository/tal.rs @@ -15,6 +15,9 @@ use crate::uri; use crate::crypto::PublicKey; use crate::util::base64; +#[cfg(feature = "serde")] +use serde::{Deserialize, Serialize}; + //------------ Tal ----------------------------------------------------------- @@ -250,6 +253,7 @@ impl fmt::Display for TalUri { #[derive(Clone, Debug)] #[cfg_attr(feature = "arbitrary", derive(arbitrary::Arbitrary))] +#[cfg_attr(feature = "serde", derive(Deserialize, Serialize))] pub struct TalInfo { name: String, }