mirror of
https://github.com/aljazceru/bitcoin-waila.git
synced 2025-12-17 04:54:18 +01:00
Derive clone for PaymentParams
This commit is contained in:
@@ -3,7 +3,7 @@ use nostr::prelude::ToBech32;
|
||||
use std::str::FromStr;
|
||||
use wasm_bindgen::prelude::*;
|
||||
|
||||
#[derive(Debug)]
|
||||
#[derive(Debug, Clone)]
|
||||
#[wasm_bindgen]
|
||||
pub struct PaymentParams {
|
||||
string: String,
|
||||
|
||||
@@ -25,7 +25,7 @@ use crate::nwa::NIP49URI;
|
||||
mod bip21;
|
||||
mod nwa;
|
||||
|
||||
#[derive(Debug)]
|
||||
#[derive(Debug, Clone)]
|
||||
pub enum PaymentParams<'a> {
|
||||
OnChain(Address),
|
||||
Bip21(UnifiedUri<'a>),
|
||||
|
||||
Reference in New Issue
Block a user