mirror of
https://github.com/aljazceru/bitcoin-waila.git
synced 2025-12-17 12:54:19 +01:00
Derive clone for PaymentParams
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
@@ -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>),
|
||||||
|
|||||||
Reference in New Issue
Block a user