pub enum ReceiveMethod {
PrivateKey(SecretKey),
Bolt12Refund(Refund),
}Expand description
A method which can be used to receive a payment
Variants§
PrivateKey(SecretKey)
A raw bitcoin private key, this will be parsed WIF encoded
Bolt12Refund(Refund)
A Bolt 12 Refund
Trait Implementations§
Source§impl Clone for ReceiveMethod
impl Clone for ReceiveMethod
Source§fn clone(&self) -> ReceiveMethod
fn clone(&self) -> ReceiveMethod
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ReceiveMethod
impl Debug for ReceiveMethod
Source§impl PartialEq for ReceiveMethod
impl PartialEq for ReceiveMethod
impl Eq for ReceiveMethod
impl StructuralPartialEq for ReceiveMethod
Auto Trait Implementations§
impl Freeze for ReceiveMethod
impl RefUnwindSafe for ReceiveMethod
impl Send for ReceiveMethod
impl Sync for ReceiveMethod
impl Unpin for ReceiveMethod
impl UnwindSafe for ReceiveMethod
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.