pub struct EmailLikeAddress<'a> {
pub username: Cow<'a, str>,
pub domain: Cow<'a, str>,
pub tag: Option<Cow<'a, str>>,
pub bip353_prefix: bool,
pub bip353_fqdn: Option<String>,
pub lightning_address_url: String,
}Expand description
Email-like human-readable payment address: BIP353 or Lightning Address. String fields are guaranteed to be lowercase (normalized during parsing).
Fields§
§username: Cow<'a, str><username>@...
domain: Cow<'a, str>...@<domain>
tag: Option<Cow<'a, str>>Lightning Address supports an optional +tag suffix on the username.
bip353_prefix: boolWhether the original input had a leading ₿ character, implying the receiver very likely intended for this to be a BIP353 URI.
bip353_fqdn: Option<String>If this is a valid BIP353 address, contains the Fully Qualified Domain Name (FQDN) where the resolver should look for the BIP353 TXT record.
lightning_address_url: StringThe HTTPS URL where the Lightning Address LNURL-pay endpoint (LUD-06) should be queried.
Implementations§
Source§impl<'a> EmailLikeAddress<'a>
impl<'a> EmailLikeAddress<'a>
pub fn into_owned(self) -> EmailLikeAddress<'static>
Trait Implementations§
Source§impl<'a> Debug for EmailLikeAddress<'a>
impl<'a> Debug for EmailLikeAddress<'a>
Auto Trait Implementations§
impl<'a> Freeze for EmailLikeAddress<'a>
impl<'a> RefUnwindSafe for EmailLikeAddress<'a>
impl<'a> Send for EmailLikeAddress<'a>
impl<'a> Sync for EmailLikeAddress<'a>
impl<'a> Unpin for EmailLikeAddress<'a>
impl<'a> UnsafeUnpin for EmailLikeAddress<'a>
impl<'a> UnwindSafe for EmailLikeAddress<'a>
Blanket Implementations§
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.