pub struct ReceiveInstructions { /* private fields */ }Expand description
Parsed receive instructions representing a set of possible ways to receive, as well as an associated description.
It supports:
- Raw WIF encoded private keys (which should be swept)
- Lightning Bolt 12 Refunds
Implementations§
Source§impl ReceiveInstructions
impl ReceiveInstructions
Sourcepub fn methods(&self) -> &[ReceiveMethod]
pub fn methods(&self) -> &[ReceiveMethod]
The list of ReceiveMethods.
Sourcepub fn sender_description(&self) -> Option<&str>
pub fn sender_description(&self) -> Option<&str>
A sender-provided description of the payment instructions.
This may be:
- the
descriptionfield in a lightning BOLT 12 offer
Sourcepub fn parse_receive_instructions(
instructions: &str,
network: Network,
) -> Result<ReceiveInstructions, ParseError>
pub fn parse_receive_instructions( instructions: &str, network: Network, ) -> Result<ReceiveInstructions, ParseError>
Resolves a string into ReceiveInstructions. Verifying it is valid for the given network
Trait Implementations§
Source§impl Clone for ReceiveInstructions
impl Clone for ReceiveInstructions
Source§fn clone(&self) -> ReceiveInstructions
fn clone(&self) -> ReceiveInstructions
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 ReceiveInstructions
impl Debug for ReceiveInstructions
Source§impl PartialEq for ReceiveInstructions
impl PartialEq for ReceiveInstructions
impl Eq for ReceiveInstructions
impl StructuralPartialEq for ReceiveInstructions
Auto Trait Implementations§
impl Freeze for ReceiveInstructions
impl RefUnwindSafe for ReceiveInstructions
impl Send for ReceiveInstructions
impl Sync for ReceiveInstructions
impl Unpin for ReceiveInstructions
impl UnwindSafe for ReceiveInstructions
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.