[bdk_chain_redesign] Add serde support for IndexedAdditions
This commit is contained in:
parent
c09cd2afce
commit
a7eaebbb77
@ -20,6 +20,17 @@ pub struct TxInChain<'a, T, A> {
|
|||||||
|
|
||||||
/// A structure that represents changes to an [`IndexedTxGraph`].
|
/// A structure that represents changes to an [`IndexedTxGraph`].
|
||||||
#[derive(Clone, Debug, PartialEq)]
|
#[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]
|
#[must_use]
|
||||||
pub struct IndexedAdditions<A, IA> {
|
pub struct IndexedAdditions<A, IA> {
|
||||||
/// [`TxGraph`] additions.
|
/// [`TxGraph`] additions.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user