Enum breez_sdk_core::input_parser::InputType
source · pub enum InputType {
BitcoinAddress {
address: BitcoinAddressData,
},
Bolt11 {
invoice: LNInvoice,
},
NodeId {
node_id: String,
},
Url {
url: String,
},
LnUrlPay {
data: LnUrlPayRequestData,
},
LnUrlWithdraw {
data: LnUrlWithdrawRequestData,
},
LnUrlAuth {
data: LnUrlAuthRequestData,
},
LnUrlError {
data: LnUrlErrorData,
},
}
Expand description
Different kinds of inputs supported by parse, including any relevant details extracted from the input
Variants§
BitcoinAddress
Fields
§
address: BitcoinAddressData
§Supported standards
- plain on-chain BTC address
- BIP21
Bolt11
Also covers URIs like bitcoin:...&lightning=bolt11
. In this case, it returns the BOLT11
and discards all other data.
NodeId
Url
LnUrlPay
Fields
§
data: LnUrlPayRequestData
§Supported standards
- LUD-01 LNURL bech32 encoding
- LUD-06
payRequest
spec - LUD-16 LN Address
- LUD-17 Support for lnurlp prefix with non-bech32-encoded LNURL URLs
LnUrlWithdraw
Fields
§Supported standards
- LUD-01 LNURL bech32 encoding
- LUD-03
withdrawRequest
spec - LUD-17 Support for lnurlw prefix with non-bech32-encoded LNURL URLs
§Not supported (yet)
- LUD-14
balanceCheck
: reusablewithdrawRequest
s - LUD-19 Pay link discoverable from withdraw link
LnUrlAuth
Fields
§
data: LnUrlAuthRequestData
§Supported standards
- LUD-01 LNURL bech32 encoding
- LUD-04
auth
base spec - LUD-17 Support for keyauth prefix with non-bech32-encoded LNURL URLs
LnUrlError
Fields
§
data: LnUrlErrorData
Trait Implementations§
source§impl From<LnUrlRequestData> for InputType
impl From<LnUrlRequestData> for InputType
source§fn from(lnurl_data: LnUrlRequestData) -> Self
fn from(lnurl_data: LnUrlRequestData) -> Self
Converts to this type from the input type.
impl IntoDartExceptPrimitive for InputType
Auto Trait Implementations§
impl Freeze for InputType
impl RefUnwindSafe for InputType
impl Send for InputType
impl Sync for InputType
impl Unpin for InputType
impl UnwindSafe for InputType
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