Skip to content

Commit

Permalink
[bdk_chain_redesign] Add serde support for IndexedAdditions
Browse files Browse the repository at this point in the history
  • Loading branch information
evanlinjin committed Mar 31, 2023
1 parent c09cd2a commit a7eaebb
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions crates/chain/src/indexed_tx_graph.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,17 @@ pub struct TxInChain<'a, T, A> {

/// A structure that represents changes to an [`IndexedTxGraph`].
#[derive(Clone, Debug, PartialEq)]
#[cfg_attr(
feature = "serde",
derive(serde::Deserialize, serde::Serialize),
serde(
crate = "serde_crate",
bound(
deserialize = "A: Ord + serde::Deserialize<'de>, IA: serde::Deserialize<'de>",
serialize = "A: Ord + serde::Serialize, IA: serde::Serialize"
)
)
)]
#[must_use]
pub struct IndexedAdditions<A, IA> {
/// [`TxGraph`] additions.
Expand Down

0 comments on commit a7eaebb

Please sign in to comment.