Derive clone for PaymentParams

This commit is contained in:
benthecarman
2024-01-09 19:28:02 +00:00
parent 0769fbab9b
commit cafef10de9
2 changed files with 2 additions and 2 deletions

View File

@@ -3,7 +3,7 @@ use nostr::prelude::ToBech32;
use std::str::FromStr; use std::str::FromStr;
use wasm_bindgen::prelude::*; use wasm_bindgen::prelude::*;
#[derive(Debug)] #[derive(Debug, Clone)]
#[wasm_bindgen] #[wasm_bindgen]
pub struct PaymentParams { pub struct PaymentParams {
string: String, string: String,

View File

@@ -25,7 +25,7 @@ use crate::nwa::NIP49URI;
mod bip21; mod bip21;
mod nwa; mod nwa;
#[derive(Debug)] #[derive(Debug, Clone)]
pub enum PaymentParams<'a> { pub enum PaymentParams<'a> {
OnChain(Address), OnChain(Address),
Bip21(UnifiedUri<'a>), Bip21(UnifiedUri<'a>),