pub struct HumanBitcoinAddress {
pub username: Username,
pub offer: Offer,
pub updated_at: TimestampMs,
pub expires_at: Option<TimestampMs>,
pub is_generated: bool,
}Expand description
The user’s active Human Bitcoin Address: the active (non-expired) primary custom HBA if present, otherwise the generated fallback. Aliases are never returned here.
Fields§
§username: UsernameUsername for BIP-353 and LNURL.
offer: OfferOffer for fetching invoices on BIP-353.
updated_at: TimestampMsThe last time this Human Bitcoin Address was updated.
expires_at: Option<TimestampMs>When this Human Bitcoin Address expires, if applicable.
Custom HBAs may or may not expire; generated fallbacks never expire.
is_generated: boolWhether this is the user’s generated fallback HBA.
Trait Implementations§
Source§impl Clone for HumanBitcoinAddress
impl Clone for HumanBitcoinAddress
Source§fn clone(&self) -> HumanBitcoinAddress
fn clone(&self) -> HumanBitcoinAddress
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for HumanBitcoinAddress
impl Debug for HumanBitcoinAddress
Source§impl<'de> Deserialize<'de> for HumanBitcoinAddress
impl<'de> Deserialize<'de> for HumanBitcoinAddress
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 PartialEq for HumanBitcoinAddress
impl PartialEq for HumanBitcoinAddress
Source§fn eq(&self, other: &HumanBitcoinAddress) -> bool
fn eq(&self, other: &HumanBitcoinAddress) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for HumanBitcoinAddress
impl Serialize for HumanBitcoinAddress
impl StructuralPartialEq for HumanBitcoinAddress
Auto Trait Implementations§
impl Freeze for HumanBitcoinAddress
impl RefUnwindSafe for HumanBitcoinAddress
impl Send for HumanBitcoinAddress
impl Sync for HumanBitcoinAddress
impl Unpin for HumanBitcoinAddress
impl UnsafeUnpin for HumanBitcoinAddress
impl UnwindSafe for HumanBitcoinAddress
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