Skip to content

Commit

Permalink
Add serde traits to TalInfo.
Browse files Browse the repository at this point in the history
  • Loading branch information
partim committed Dec 13, 2024
1 parent e17b896 commit 21abac8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/repository/tal.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ use crate::uri;
use crate::crypto::PublicKey;
use crate::util::base64;

#[cfg(feature = "serde")]
use serde::{Deserialize, Serialize};


//------------ Tal -----------------------------------------------------------

Expand Down Expand Up @@ -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,
}
Expand Down

0 comments on commit 21abac8

Please sign in to comment.