pub enum LnUrlPayResult {
EndpointSuccess {
data: LnUrlPaySuccessData,
},
EndpointError {
data: LnUrlErrorData,
},
PayError {
data: LnUrlPayErrorData,
},
}
Expand description
Contains the result of the entire LNURL-pay interaction, as reported by the LNURL endpoint.
-
EndpointSuccess
indicates the payment is complete. The endpoint may return aSuccessActionProcessed
, in which case, the wallet has to present it to the user as described in https://github.com/lnurl/luds/blob/luds/09.md -
EndpointError
indicates a generic issue the LNURL endpoint encountered, including a freetext field with the reason. -
PayError
indicates that an error occurred while trying to pay the invoice from the LNURL endpoint. This includes the payment hash of the failed invoice and the failure reason.
Variants§
EndpointSuccess
Fields
§
data: LnUrlPaySuccessData
EndpointError
Fields
§
data: LnUrlErrorData
PayError
Fields
§
data: LnUrlPayErrorData
Trait Implementations§
source§impl IntoDart for LnUrlPayResult
impl IntoDart for LnUrlPayResult
source§impl IntoIntoDart<LnUrlPayResult> for LnUrlPayResult
impl IntoIntoDart<LnUrlPayResult> for LnUrlPayResult
fn into_into_dart(self) -> LnUrlPayResult
source§impl Serialize for LnUrlPayResult
impl Serialize for LnUrlPayResult
impl IntoDartExceptPrimitive for LnUrlPayResult
Auto Trait Implementations§
impl Freeze for LnUrlPayResult
impl RefUnwindSafe for LnUrlPayResult
impl Send for LnUrlPayResult
impl Sync for LnUrlPayResult
impl Unpin for LnUrlPayResult
impl UnwindSafe for LnUrlPayResult
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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