Skip to main content

Crate lexe_payment_uri_core

Crate lexe_payment_uri_core 

Source
Expand description

Core types and logic required to permissively parse Bitcoin / lightning payment addresses and URIs. For actually resolving a PaymentUri into a PaymentMethod, which frequently requires accessing a network, see the lexe-payment-uri crate.

§Permissive parsing

This crate parses various BTC-related payment methods permissively. That means we accept inputs that are not strictly well-formed.

Other wallet parsers for comparison:

§Prompts

Please read these URI parser impls:
- `~/lexe/github/breez-sdk-greenlight/libs/sdk-common/src/input_parser.rs`
- `~/lexe/github/phoenix/phoenix-shared/src/commonMain/kotlin/fr.acinq.phoenix/utils/Parser.kt` (and files nearby)
- `~/lexe/github/bitcoin-waila/waila/src/lib.rs`

Modules§

helpers
Helper functions and utilities; some of these are public.

Structs§

BestPaymentUriMethods
Export all public types so they are accessible via the crate root. The containing modules are used only for internal organization, and are intentionally private so crate users have a simple, flat namespace. Export all public types so they are accessible via the crate root. The containing modules are used only for internal organization, and are intentionally private so crate users have a simple, flat namespace. Export all public types so they are accessible via the crate root. The containing modules are used only for internal organization, and are intentionally private so crate users have a simple, flat namespace. Export all public types so they are accessible via the crate root. The containing modules are used only for internal organization, and are intentionally private so crate users have a simple, flat namespace. Export all public types so they are accessible via the crate root. The containing modules are used only for internal organization, and are intentionally private so crate users have a simple, flat namespace. Export all public types so they are accessible via the crate root. The containing modules are used only for internal organization, and are intentionally private so crate users have a simple, flat namespace. Export all public types so they are accessible via the crate root. The containing modules are used only for internal organization, and are intentionally private so crate users have a simple, flat namespace. Export all public types so they are accessible via the crate root. The containing modules are used only for internal organization, and are intentionally private so crate users have a simple, flat namespace. Export all public types so they are accessible via the crate root. The containing modules are used only for internal organization, and are intentionally private so crate users have a simple, flat namespace. The highest priority method of each kind, if any.
Bip321Uri
Export all public types so they are accessible via the crate root. The containing modules are used only for internal organization, and are intentionally private so crate users have a simple, flat namespace. Export all public types so they are accessible via the crate root. The containing modules are used only for internal organization, and are intentionally private so crate users have a simple, flat namespace. Export all public types so they are accessible via the crate root. The containing modules are used only for internal organization, and are intentionally private so crate users have a simple, flat namespace. A BIP321 / BIP21 URI
EmailLikeAddress
Export all public types so they are accessible via the crate root. The containing modules are used only for internal organization, and are intentionally private so crate users have a simple, flat namespace. Export all public types so they are accessible via the crate root. The containing modules are used only for internal organization, and are intentionally private so crate users have a simple, flat namespace. Export all public types so they are accessible via the crate root. The containing modules are used only for internal organization, and are intentionally private so crate users have a simple, flat namespace. Email-like human-readable payment address: BIP353 or Lightning Address. String fields are guaranteed to be lowercase (normalized during parsing).
LexePayUrl
Export all public types so they are accessible via the crate root. The containing modules are used only for internal organization, and are intentionally private so crate users have a simple, flat namespace. Export all public types so they are accessible via the crate root. The containing modules are used only for internal organization, and are intentionally private so crate users have a simple, flat namespace. Export all public types so they are accessible via the crate root. The containing modules are used only for internal organization, and are intentionally private so crate users have a simple, flat namespace. Export all public types so they are accessible via the crate root. The containing modules are used only for internal organization, and are intentionally private so crate users have a simple, flat namespace. Export all public types so they are accessible via the crate root. The containing modules are used only for internal organization, and are intentionally private so crate users have a simple, flat namespace. Export all public types so they are accessible via the crate root. The containing modules are used only for internal organization, and are intentionally private so crate users have a simple, flat namespace. Export all public types so they are accessible via the crate root. The containing modules are used only for internal organization, and are intentionally private so crate users have a simple, flat namespace. Export all public types so they are accessible via the crate root. The containing modules are used only for internal organization, and are intentionally private so crate users have a simple, flat namespace. Export all public types so they are accessible via the crate root. The containing modules are used only for internal organization, and are intentionally private so crate users have a simple, flat namespace. A Lexe pay app link, which opens the payment code it wraps directly in the Lexe app, or on a lexe.app fallback page without it. For apps or sites that want to send the user to the Lexe app specifically.
LexeUri
Export all public types so they are accessible via the crate root. The containing modules are used only for internal organization, and are intentionally private so crate users have a simple, flat namespace. Export all public types so they are accessible via the crate root. The containing modules are used only for internal organization, and are intentionally private so crate users have a simple, flat namespace. Export all public types so they are accessible via the crate root. The containing modules are used only for internal organization, and are intentionally private so crate users have a simple, flat namespace. Export all public types so they are accessible via the crate root. The containing modules are used only for internal organization, and are intentionally private so crate users have a simple, flat namespace. Export all public types so they are accessible via the crate root. The containing modules are used only for internal organization, and are intentionally private so crate users have a simple, flat namespace. Export all public types so they are accessible via the crate root. The containing modules are used only for internal organization, and are intentionally private so crate users have a simple, flat namespace. Export all public types so they are accessible via the crate root. The containing modules are used only for internal organization, and are intentionally private so crate users have a simple, flat namespace. Export all public types so they are accessible via the crate root. The containing modules are used only for internal organization, and are intentionally private so crate users have a simple, flat namespace. Export all public types so they are accessible via the crate root. The containing modules are used only for internal organization, and are intentionally private so crate users have a simple, flat namespace. A lexe: URI deep link, which opens the payment code it wraps directly in the Lexe app on the same device, rather than in any wallet that handles e.g. “bitcoin:”. Not as secure as a LexePayUrl, since a malicious app can also register as a lexe: URI handler.
Lnurl
Export all public types so they are accessible via the crate root. The containing modules are used only for internal organization, and are intentionally private so crate users have a simple, flat namespace. Export all public types so they are accessible via the crate root. The containing modules are used only for internal organization, and are intentionally private so crate users have a simple, flat namespace. Export all public types so they are accessible via the crate root. The containing modules are used only for internal organization, and are intentionally private so crate users have a simple, flat namespace. Export all public types so they are accessible via the crate root. The containing modules are used only for internal organization, and are intentionally private so crate users have a simple, flat namespace. Export all public types so they are accessible via the crate root. The containing modules are used only for internal organization, and are intentionally private so crate users have a simple, flat namespace. Export all public types so they are accessible via the crate root. The containing modules are used only for internal organization, and are intentionally private so crate users have a simple, flat namespace. Export all public types so they are accessible via the crate root. The containing modules are used only for internal organization, and are intentionally private so crate users have a simple, flat namespace. Export all public types so they are accessible via the crate root. The containing modules are used only for internal organization, and are intentionally private so crate users have a simple, flat namespace. Export all public types so they are accessible via the crate root. The containing modules are used only for internal organization, and are intentionally private so crate users have a simple, flat namespace. A parsed LNURL.
LnurlAuthRequest
Export all public types so they are accessible via the crate root. The containing modules are used only for internal organization, and are intentionally private so crate users have a simple, flat namespace. Export all public types so they are accessible via the crate root. The containing modules are used only for internal organization, and are intentionally private so crate users have a simple, flat namespace. Export all public types so they are accessible via the crate root. The containing modules are used only for internal organization, and are intentionally private so crate users have a simple, flat namespace. Export all public types so they are accessible via the crate root. The containing modules are used only for internal organization, and are intentionally private so crate users have a simple, flat namespace. Export all public types so they are accessible via the crate root. The containing modules are used only for internal organization, and are intentionally private so crate users have a simple, flat namespace. Export all public types so they are accessible via the crate root. The containing modules are used only for internal organization, and are intentionally private so crate users have a simple, flat namespace. Export all public types so they are accessible via the crate root. The containing modules are used only for internal organization, and are intentionally private so crate users have a simple, flat namespace. Export all public types so they are accessible via the crate root. The containing modules are used only for internal organization, and are intentionally private so crate users have a simple, flat namespace. Export all public types so they are accessible via the crate root. The containing modules are used only for internal organization, and are intentionally private so crate users have a simple, flat namespace. LUD-04 LNURL-auth request.
LnurlWithdrawRequest
Export all public types so they are accessible via the crate root. The containing modules are used only for internal organization, and are intentionally private so crate users have a simple, flat namespace. Export all public types so they are accessible via the crate root. The containing modules are used only for internal organization, and are intentionally private so crate users have a simple, flat namespace. Export all public types so they are accessible via the crate root. The containing modules are used only for internal organization, and are intentionally private so crate users have a simple, flat namespace. Export all public types so they are accessible via the crate root. The containing modules are used only for internal organization, and are intentionally private so crate users have a simple, flat namespace. Export all public types so they are accessible via the crate root. The containing modules are used only for internal organization, and are intentionally private so crate users have a simple, flat namespace. Export all public types so they are accessible via the crate root. The containing modules are used only for internal organization, and are intentionally private so crate users have a simple, flat namespace. Export all public types so they are accessible via the crate root. The containing modules are used only for internal organization, and are intentionally private so crate users have a simple, flat namespace. Export all public types so they are accessible via the crate root. The containing modules are used only for internal organization, and are intentionally private so crate users have a simple, flat namespace. Export all public types so they are accessible via the crate root. The containing modules are used only for internal organization, and are intentionally private so crate users have a simple, flat namespace. LUD-03 LNURL-withdraw request.
LnurlWithdrawRequestWire
Export all public types so they are accessible via the crate root. The containing modules are used only for internal organization, and are intentionally private so crate users have a simple, flat namespace. Export all public types so they are accessible via the crate root. The containing modules are used only for internal organization, and are intentionally private so crate users have a simple, flat namespace. Export all public types so they are accessible via the crate root. The containing modules are used only for internal organization, and are intentionally private so crate users have a simple, flat namespace. Export all public types so they are accessible via the crate root. The containing modules are used only for internal organization, and are intentionally private so crate users have a simple, flat namespace. Export all public types so they are accessible via the crate root. The containing modules are used only for internal organization, and are intentionally private so crate users have a simple, flat namespace. Export all public types so they are accessible via the crate root. The containing modules are used only for internal organization, and are intentionally private so crate users have a simple, flat namespace. Export all public types so they are accessible via the crate root. The containing modules are used only for internal organization, and are intentionally private so crate users have a simple, flat namespace. Export all public types so they are accessible via the crate root. The containing modules are used only for internal organization, and are intentionally private so crate users have a simple, flat namespace. Export all public types so they are accessible via the crate root. The containing modules are used only for internal organization, and are intentionally private so crate users have a simple, flat namespace. LUD-03 wire format for LNURL-withdraw request.
PaymentUriMethods
Export all public types so they are accessible via the crate root. The containing modules are used only for internal organization, and are intentionally private so crate users have a simple, flat namespace. Export all public types so they are accessible via the crate root. The containing modules are used only for internal organization, and are intentionally private so crate users have a simple, flat namespace. Export all public types so they are accessible via the crate root. The containing modules are used only for internal organization, and are intentionally private so crate users have a simple, flat namespace. Export all public types so they are accessible via the crate root. The containing modules are used only for internal organization, and are intentionally private so crate users have a simple, flat namespace. Export all public types so they are accessible via the crate root. The containing modules are used only for internal organization, and are intentionally private so crate users have a simple, flat namespace. Export all public types so they are accessible via the crate root. The containing modules are used only for internal organization, and are intentionally private so crate users have a simple, flat namespace. Export all public types so they are accessible via the crate root. The containing modules are used only for internal organization, and are intentionally private so crate users have a simple, flat namespace. Export all public types so they are accessible via the crate root. The containing modules are used only for internal organization, and are intentionally private so crate users have a simple, flat namespace. Export all public types so they are accessible via the crate root. The containing modules are used only for internal organization, and are intentionally private so crate users have a simple, flat namespace. Every method a payment code resolves to, by kind.
PermittedMethods
Export all public types so they are accessible via the crate root. The containing modules are used only for internal organization, and are intentionally private so crate users have a simple, flat namespace. Export all public types so they are accessible via the crate root. The containing modules are used only for internal organization, and are intentionally private so crate users have a simple, flat namespace. Export all public types so they are accessible via the crate root. The containing modules are used only for internal organization, and are intentionally private so crate users have a simple, flat namespace. Export all public types so they are accessible via the crate root. The containing modules are used only for internal organization, and are intentionally private so crate users have a simple, flat namespace. Export all public types so they are accessible via the crate root. The containing modules are used only for internal organization, and are intentionally private so crate users have a simple, flat namespace. Export all public types so they are accessible via the crate root. The containing modules are used only for internal organization, and are intentionally private so crate users have a simple, flat namespace. Export all public types so they are accessible via the crate root. The containing modules are used only for internal organization, and are intentionally private so crate users have a simple, flat namespace. Export all public types so they are accessible via the crate root. The containing modules are used only for internal organization, and are intentionally private so crate users have a simple, flat namespace. Export all public types so they are accessible via the crate root. The containing modules are used only for internal organization, and are intentionally private so crate users have a simple, flat namespace. Whether a payment code may resolve to payment, claim, and auth methods.

Enums§

AuthMethod
Export all public types so they are accessible via the crate root. The containing modules are used only for internal organization, and are intentionally private so crate users have a simple, flat namespace. Export all public types so they are accessible via the crate root. The containing modules are used only for internal organization, and are intentionally private so crate users have a simple, flat namespace. Export all public types so they are accessible via the crate root. The containing modules are used only for internal organization, and are intentionally private so crate users have a simple, flat namespace. Export all public types so they are accessible via the crate root. The containing modules are used only for internal organization, and are intentionally private so crate users have a simple, flat namespace. Export all public types so they are accessible via the crate root. The containing modules are used only for internal organization, and are intentionally private so crate users have a simple, flat namespace. Export all public types so they are accessible via the crate root. The containing modules are used only for internal organization, and are intentionally private so crate users have a simple, flat namespace. Export all public types so they are accessible via the crate root. The containing modules are used only for internal organization, and are intentionally private so crate users have a simple, flat namespace. Export all public types so they are accessible via the crate root. The containing modules are used only for internal organization, and are intentionally private so crate users have a simple, flat namespace. Export all public types so they are accessible via the crate root. The containing modules are used only for internal organization, and are intentionally private so crate users have a simple, flat namespace. A single “auth method”: a general auth mechanism which moves no money. Compare with PaymentMethod (outbound) and ClaimMethod (inbound).
ClaimMethod
Export all public types so they are accessible via the crate root. The containing modules are used only for internal organization, and are intentionally private so crate users have a simple, flat namespace. Export all public types so they are accessible via the crate root. The containing modules are used only for internal organization, and are intentionally private so crate users have a simple, flat namespace. Export all public types so they are accessible via the crate root. The containing modules are used only for internal organization, and are intentionally private so crate users have a simple, flat namespace. Export all public types so they are accessible via the crate root. The containing modules are used only for internal organization, and are intentionally private so crate users have a simple, flat namespace. Export all public types so they are accessible via the crate root. The containing modules are used only for internal organization, and are intentionally private so crate users have a simple, flat namespace. Export all public types so they are accessible via the crate root. The containing modules are used only for internal organization, and are intentionally private so crate users have a simple, flat namespace. Export all public types so they are accessible via the crate root. The containing modules are used only for internal organization, and are intentionally private so crate users have a simple, flat namespace. Export all public types so they are accessible via the crate root. The containing modules are used only for internal organization, and are intentionally private so crate users have a simple, flat namespace. Export all public types so they are accessible via the crate root. The containing modules are used only for internal organization, and are intentionally private so crate users have a simple, flat namespace. A single “claim method” – each kind here should correspond with a single linear (inbound) payment flow for a user, where there are no other alternate methods.
Error
LightningUri
Export all public types so they are accessible via the crate root. The containing modules are used only for internal organization, and are intentionally private so crate users have a simple, flat namespace. Export all public types so they are accessible via the crate root. The containing modules are used only for internal organization, and are intentionally private so crate users have a simple, flat namespace. Export all public types so they are accessible via the crate root. The containing modules are used only for internal organization, and are intentionally private so crate users have a simple, flat namespace. A “lightning:” URI carrying exactly one piece of payment data in its body: a BOLT11 invoice, BOLT12 offer, bech32-encoded LNURL, or email-like address (Lightning Address / BIP353).
LnurlAuthAction
Export all public types so they are accessible via the crate root. The containing modules are used only for internal organization, and are intentionally private so crate users have a simple, flat namespace. Export all public types so they are accessible via the crate root. The containing modules are used only for internal organization, and are intentionally private so crate users have a simple, flat namespace. Export all public types so they are accessible via the crate root. The containing modules are used only for internal organization, and are intentionally private so crate users have a simple, flat namespace. Export all public types so they are accessible via the crate root. The containing modules are used only for internal organization, and are intentionally private so crate users have a simple, flat namespace. Export all public types so they are accessible via the crate root. The containing modules are used only for internal organization, and are intentionally private so crate users have a simple, flat namespace. Export all public types so they are accessible via the crate root. The containing modules are used only for internal organization, and are intentionally private so crate users have a simple, flat namespace. Export all public types so they are accessible via the crate root. The containing modules are used only for internal organization, and are intentionally private so crate users have a simple, flat namespace. Export all public types so they are accessible via the crate root. The containing modules are used only for internal organization, and are intentionally private so crate users have a simple, flat namespace. Export all public types so they are accessible via the crate root. The containing modules are used only for internal organization, and are intentionally private so crate users have a simple, flat namespace. LUD-04 action values.
LnurlScheme
Export all public types so they are accessible via the crate root. The containing modules are used only for internal organization, and are intentionally private so crate users have a simple, flat namespace. Export all public types so they are accessible via the crate root. The containing modules are used only for internal organization, and are intentionally private so crate users have a simple, flat namespace. Export all public types so they are accessible via the crate root. The containing modules are used only for internal organization, and are intentionally private so crate users have a simple, flat namespace. Export all public types so they are accessible via the crate root. The containing modules are used only for internal organization, and are intentionally private so crate users have a simple, flat namespace. Export all public types so they are accessible via the crate root. The containing modules are used only for internal organization, and are intentionally private so crate users have a simple, flat namespace. Export all public types so they are accessible via the crate root. The containing modules are used only for internal organization, and are intentionally private so crate users have a simple, flat namespace. Export all public types so they are accessible via the crate root. The containing modules are used only for internal organization, and are intentionally private so crate users have a simple, flat namespace. Export all public types so they are accessible via the crate root. The containing modules are used only for internal organization, and are intentionally private so crate users have a simple, flat namespace. Export all public types so they are accessible via the crate root. The containing modules are used only for internal organization, and are intentionally private so crate users have a simple, flat namespace. The LNURL scheme encountered during parsing. Resolvers may use this to determine intent.
LnurlTag
Export all public types so they are accessible via the crate root. The containing modules are used only for internal organization, and are intentionally private so crate users have a simple, flat namespace. Export all public types so they are accessible via the crate root. The containing modules are used only for internal organization, and are intentionally private so crate users have a simple, flat namespace. Export all public types so they are accessible via the crate root. The containing modules are used only for internal organization, and are intentionally private so crate users have a simple, flat namespace. Export all public types so they are accessible via the crate root. The containing modules are used only for internal organization, and are intentionally private so crate users have a simple, flat namespace. Export all public types so they are accessible via the crate root. The containing modules are used only for internal organization, and are intentionally private so crate users have a simple, flat namespace. Export all public types so they are accessible via the crate root. The containing modules are used only for internal organization, and are intentionally private so crate users have a simple, flat namespace. Export all public types so they are accessible via the crate root. The containing modules are used only for internal organization, and are intentionally private so crate users have a simple, flat namespace. Export all public types so they are accessible via the crate root. The containing modules are used only for internal organization, and are intentionally private so crate users have a simple, flat namespace. Export all public types so they are accessible via the crate root. The containing modules are used only for internal organization, and are intentionally private so crate users have a simple, flat namespace. LNURL tag variants. LUD-01 specifies that each LNURL flow must have an associated tag, which is either included in the original LNURL as a query parameter or returned under the “tag” key in a JSON response.
LnurlWithdrawRequestTag
Export all public types so they are accessible via the crate root. The containing modules are used only for internal organization, and are intentionally private so crate users have a simple, flat namespace. Export all public types so they are accessible via the crate root. The containing modules are used only for internal organization, and are intentionally private so crate users have a simple, flat namespace. Export all public types so they are accessible via the crate root. The containing modules are used only for internal organization, and are intentionally private so crate users have a simple, flat namespace. Export all public types so they are accessible via the crate root. The containing modules are used only for internal organization, and are intentionally private so crate users have a simple, flat namespace. Export all public types so they are accessible via the crate root. The containing modules are used only for internal organization, and are intentionally private so crate users have a simple, flat namespace. Export all public types so they are accessible via the crate root. The containing modules are used only for internal organization, and are intentionally private so crate users have a simple, flat namespace. Export all public types so they are accessible via the crate root. The containing modules are used only for internal organization, and are intentionally private so crate users have a simple, flat namespace. Export all public types so they are accessible via the crate root. The containing modules are used only for internal organization, and are intentionally private so crate users have a simple, flat namespace. Export all public types so they are accessible via the crate root. The containing modules are used only for internal organization, and are intentionally private so crate users have a simple, flat namespace.
PaymentMethod
Export all public types so they are accessible via the crate root. The containing modules are used only for internal organization, and are intentionally private so crate users have a simple, flat namespace. Export all public types so they are accessible via the crate root. The containing modules are used only for internal organization, and are intentionally private so crate users have a simple, flat namespace. Export all public types so they are accessible via the crate root. The containing modules are used only for internal organization, and are intentionally private so crate users have a simple, flat namespace. Export all public types so they are accessible via the crate root. The containing modules are used only for internal organization, and are intentionally private so crate users have a simple, flat namespace. Export all public types so they are accessible via the crate root. The containing modules are used only for internal organization, and are intentionally private so crate users have a simple, flat namespace. Export all public types so they are accessible via the crate root. The containing modules are used only for internal organization, and are intentionally private so crate users have a simple, flat namespace. Export all public types so they are accessible via the crate root. The containing modules are used only for internal organization, and are intentionally private so crate users have a simple, flat namespace. Export all public types so they are accessible via the crate root. The containing modules are used only for internal organization, and are intentionally private so crate users have a simple, flat namespace. Export all public types so they are accessible via the crate root. The containing modules are used only for internal organization, and are intentionally private so crate users have a simple, flat namespace. A single “payment method” – each kind here should correspond with a single linear (outbound) payment flow for a user, where there are no other alternate methods.
PaymentUri
Export all public types so they are accessible via the crate root. The containing modules are used only for internal organization, and are intentionally private so crate users have a simple, flat namespace. Export all public types so they are accessible via the crate root. The containing modules are used only for internal organization, and are intentionally private so crate users have a simple, flat namespace. Export all public types so they are accessible via the crate root. The containing modules are used only for internal organization, and are intentionally private so crate users have a simple, flat namespace. A decoded “Payment URI”, usually from a scanned QR code, manually pasted code, or handling a URI open (like tapping a bitcoin:bc1qfjeyfl... URI in your mobile browser or in another app).
Resolvable
Export all public types so they are accessible via the crate root. The containing modules are used only for internal organization, and are intentionally private so crate users have a simple, flat namespace. Export all public types so they are accessible via the crate root. The containing modules are used only for internal organization, and are intentionally private so crate users have a simple, flat namespace. Export all public types so they are accessible via the crate root. The containing modules are used only for internal organization, and are intentionally private so crate users have a simple, flat namespace. Export all public types so they are accessible via the crate root. The containing modules are used only for internal organization, and are intentionally private so crate users have a simple, flat namespace. Export all public types so they are accessible via the crate root. The containing modules are used only for internal organization, and are intentionally private so crate users have a simple, flat namespace. Export all public types so they are accessible via the crate root. The containing modules are used only for internal organization, and are intentionally private so crate users have a simple, flat namespace. Export all public types so they are accessible via the crate root. The containing modules are used only for internal organization, and are intentionally private so crate users have a simple, flat namespace. Export all public types so they are accessible via the crate root. The containing modules are used only for internal organization, and are intentionally private so crate users have a simple, flat namespace. Export all public types so they are accessible via the crate root. The containing modules are used only for internal organization, and are intentionally private so crate users have a simple, flat namespace. “Almost” a payment/claim method: a piece of payment data that requires further resolution before it becomes a PaymentMethod/ClaimMethod.

Traits§

PaymentUriMethod
Export all public types so they are accessible via the crate root. The containing modules are used only for internal organization, and are intentionally private so crate users have a simple, flat namespace. Export all public types so they are accessible via the crate root. The containing modules are used only for internal organization, and are intentionally private so crate users have a simple, flat namespace. Export all public types so they are accessible via the crate root. The containing modules are used only for internal organization, and are intentionally private so crate users have a simple, flat namespace. Export all public types so they are accessible via the crate root. The containing modules are used only for internal organization, and are intentionally private so crate users have a simple, flat namespace. Export all public types so they are accessible via the crate root. The containing modules are used only for internal organization, and are intentionally private so crate users have a simple, flat namespace. Export all public types so they are accessible via the crate root. The containing modules are used only for internal organization, and are intentionally private so crate users have a simple, flat namespace. Export all public types so they are accessible via the crate root. The containing modules are used only for internal organization, and are intentionally private so crate users have a simple, flat namespace. Export all public types so they are accessible via the crate root. The containing modules are used only for internal organization, and are intentionally private so crate users have a simple, flat namespace. Export all public types so they are accessible via the crate root. The containing modules are used only for internal organization, and are intentionally private so crate users have a simple, flat namespace. A method a PaymentUri resolves to.