Skip to content

Commit

Permalink
feat: add serde to ReceivedReceipt
Browse files Browse the repository at this point in the history
Signed-off-by: Gustavo Inacio <gustavo@semiotic.ai>
  • Loading branch information
gusinacio committed Mar 8, 2024
1 parent 57ac66f commit b13bedf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tap_core/src/tap_receipt/received_receipt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,8 @@ impl ReceiptState for AwaitingReserve {}
impl ReceiptState for Reserved {}
impl ReceiptState for Failed {}

#[derive(Clone)]
#[derive(Clone, Serialize, Deserialize)]
#[serde(bound(deserialize = "'de: 'static"))]
pub enum ReceivedReceipt {
AwaitingReserve(ReceiptWithState<AwaitingReserve>),
Checking(ReceiptWithState<Checking>),
Expand Down

0 comments on commit b13bedf

Please sign in to comment.