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
On-wire format is: {"status": "ERROR", "reason": "error details..."}
Fields
§
data: LnUrlErrorData
Trait Implementations§
§impl Clone for LnUrlCallbackStatus
impl Clone for LnUrlCallbackStatus
§fn clone(&self) -> LnUrlCallbackStatus
fn clone(&self) -> LnUrlCallbackStatus
Returns a copy 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 more§impl Debug for LnUrlCallbackStatus
impl Debug for LnUrlCallbackStatus
§impl<'de> Deserialize<'de> for LnUrlCallbackStatus
impl<'de> Deserialize<'de> for LnUrlCallbackStatus
§fn deserialize<__D>(
__deserializer: __D,
) -> Result<LnUrlCallbackStatus, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<LnUrlCallbackStatus, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl Serialize for LnUrlCallbackStatus
impl Serialize for LnUrlCallbackStatus
§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
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<'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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§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