pub enum PaymentMethod {
Ark(Address),
Bitcoin(Address<NetworkUnchecked>),
OutputScript(ScriptBuf),
Invoice(Invoice),
Offer(Offer),
LightningAddress(LightningAddress),
Custom(String),
}Expand description
Provides a typed mechanism for describing the recipient in a MovementDestination.
Variants§
Ark(Address)
An ark::Address for bark.
Bitcoin(Address<NetworkUnchecked>)
An onchain bitcoin::Address.
OutputScript(ScriptBuf)
An onchain bitcoin::ScriptBuf output, typically used for non-address formats like OP_RETURN.
Invoice(Invoice)
Any supported form of lightning Invoice, e.g., Bolt11Invoice and Bolt12Invoice.
Offer(Offer)
A reusable BOLT12 Offer for lightning payments.
LightningAddress(LightningAddress)
An email-like format used to retrieve a Bolt11Invoice.
Custom(String)
An alternative payment method that isn’t native to bark.
Implementations§
Source§impl PaymentMethod
impl PaymentMethod
Trait Implementations§
Source§impl Clone for PaymentMethod
impl Clone for PaymentMethod
Source§fn clone(&self) -> PaymentMethod
fn clone(&self) -> PaymentMethod
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 PaymentMethod
impl Debug for PaymentMethod
Source§impl<'de> Deserialize<'de> for PaymentMethod
impl<'de> Deserialize<'de> for PaymentMethod
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<Address<NetworkUnchecked>> for PaymentMethod
impl From<Address<NetworkUnchecked>> for PaymentMethod
Source§fn from(addr: Address<NetworkUnchecked>) -> Self
fn from(addr: Address<NetworkUnchecked>) -> Self
Converts to this type from the input type.
Source§impl From<Address> for PaymentMethod
impl From<Address> for PaymentMethod
Source§impl From<Address> for PaymentMethod
impl From<Address> for PaymentMethod
Source§fn from(addr: Address<NetworkChecked>) -> Self
fn from(addr: Address<NetworkChecked>) -> Self
Converts to this type from the input type.
Source§impl From<Bolt11Invoice> for PaymentMethod
impl From<Bolt11Invoice> for PaymentMethod
Source§fn from(invoice: Bolt11Invoice) -> Self
fn from(invoice: Bolt11Invoice) -> Self
Converts to this type from the input type.
Source§impl From<Bolt12Invoice> for PaymentMethod
impl From<Bolt12Invoice> for PaymentMethod
Source§fn from(invoice: Bolt12Invoice) -> Self
fn from(invoice: Bolt12Invoice) -> Self
Converts to this type from the input type.
Source§impl From<Invoice> for PaymentMethod
impl From<Invoice> for PaymentMethod
Source§impl From<LightningAddress> for PaymentMethod
impl From<LightningAddress> for PaymentMethod
Source§fn from(addr: LightningAddress) -> Self
fn from(addr: LightningAddress) -> Self
Converts to this type from the input type.
Source§impl From<Offer> for PaymentMethod
impl From<Offer> for PaymentMethod
Source§impl Hash for PaymentMethod
impl Hash for PaymentMethod
Source§impl PartialEq for PaymentMethod
impl PartialEq for PaymentMethod
Source§impl Serialize for PaymentMethod
impl Serialize for PaymentMethod
impl Eq for PaymentMethod
impl StructuralPartialEq for PaymentMethod
Auto Trait Implementations§
impl Freeze for PaymentMethod
impl RefUnwindSafe for PaymentMethod
impl Send for PaymentMethod
impl Sync for PaymentMethod
impl Unpin for PaymentMethod
impl UnwindSafe for PaymentMethod
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.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<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request