Skip to main content

AsPaymentHash

Trait AsPaymentHash 

Source
pub trait AsPaymentHash {
    // Required method
    fn as_payment_hash(&self) -> PaymentHash;
}
Expand description

Trait to capture any type that is associated with a Lightning payment hash

Required Methods§

Source

fn as_payment_hash(&self) -> PaymentHash

Get the payment hash associated with this item

Implementations on Foreign Types§

Source§

impl<'a, T: AsPaymentHash> AsPaymentHash for &'a T

Implementors§