pub enum LnUrlCallbackStatus {
Ok,
ErrorStatus {
data: LnUrlErrorData,
},
}
Expand description
Contains the result of the entire LNURL interaction, as reported by the LNURL endpoint.
Ok
indicates the interaction with the endpoint was valid, and the endpoint
- started to pay the invoice asynchronously in the case of LNURL-withdraw,
- verified the client signature in the case of LNURL-auth,////// *
Error
indicates a generic issue the LNURL endpoint encountered, including a freetext description of the reason.
Both cases are described in LUD-03 https://github.com/lnurl/luds/blob/luds/03.md & LUD-04: https://github.com/lnurl/luds/blob/luds/04.md
Variants§
Ok
On-wire format is: {"status": "OK"}
ErrorStatus
Fields
§
data: LnUrlErrorData
On-wire format is: {"status": "ERROR", "reason": "error details..."}
Trait Implementations§
source§impl Debug for LnUrlCallbackStatus
impl Debug for LnUrlCallbackStatus
source§impl<'de> Deserialize<'de> for LnUrlCallbackStatus
impl<'de> Deserialize<'de> for LnUrlCallbackStatus
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 IntoDart for LnUrlCallbackStatus
impl IntoDart for LnUrlCallbackStatus
source§impl IntoIntoDart<LnUrlCallbackStatus> for LnUrlCallbackStatus
impl IntoIntoDart<LnUrlCallbackStatus> for LnUrlCallbackStatus
fn into_into_dart(self) -> Self
source§impl Serialize for LnUrlCallbackStatus
impl Serialize for LnUrlCallbackStatus
impl IntoDartExceptPrimitive for LnUrlCallbackStatus
Auto Trait Implementations§
impl Freeze for LnUrlCallbackStatus
impl RefUnwindSafe for LnUrlCallbackStatus
impl Send for LnUrlCallbackStatus
impl Sync for LnUrlCallbackStatus
impl Unpin for LnUrlCallbackStatus
impl UnwindSafe for LnUrlCallbackStatus
Blanket Implementations§
§impl<T> AnySync for T
impl<T> AnySync for T
§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> BoxIntoDart for Twhere
T: IntoDart,
impl<T> BoxIntoDart for Twhere
T: IntoDart,
fn box_into_dart(self: Box<T>) -> DartCObject
§impl<T> Downcast for Twhere
T: AsAny + ?Sized,
impl<T> Downcast for Twhere
T: AsAny + ?Sized,
§fn downcast_ref<T>(&self) -> Option<&T>where
T: AsAny,
fn downcast_ref<T>(&self) -> Option<&T>where
T: AsAny,
Forward to the method defined on the type
Any
.§fn downcast_mut<T>(&mut self) -> Option<&mut T>where
T: AsAny,
fn downcast_mut<T>(&mut self) -> Option<&mut T>where
T: AsAny,
Forward to the method defined on the type
Any
.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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