pub enum PossiblyResolvedPaymentMethod<'a> {
LNURLPay {
min_value: Amount,
max_value: Amount,
callback: &'a str,
},
Resolved(&'a PaymentMethod),
}Expand description
A payment method which may require further resolution once the amount we wish to pay is fixed.
Variants§
LNURLPay
A payment using lightning as described by a BOLT 11 invoice which will be provided by this LNURL-pay endpoint
Fields
§
callback: &'a strThe URI which must be fetched (once an amount parameter is added) to fully resolve
this into a Bolt11Invoice.
Resolved(&'a PaymentMethod)
A payment method which has been fully resolved.
Implementations§
Source§impl<'a> PossiblyResolvedPaymentMethod<'a>
impl<'a> PossiblyResolvedPaymentMethod<'a>
Sourcepub fn method_type(&self) -> PaymentMethodType
pub fn method_type(&self) -> PaymentMethodType
Fetches the PaymentMethodType that this payment method will ultimately resolve to.
Auto Trait Implementations§
impl<'a> Freeze for PossiblyResolvedPaymentMethod<'a>
impl<'a> RefUnwindSafe for PossiblyResolvedPaymentMethod<'a>
impl<'a> Send for PossiblyResolvedPaymentMethod<'a>
impl<'a> Sync for PossiblyResolvedPaymentMethod<'a>
impl<'a> Unpin for PossiblyResolvedPaymentMethod<'a>
impl<'a> UnwindSafe for PossiblyResolvedPaymentMethod<'a>
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