pub struct HumanBitcoinAddressV1 {
pub username: Option<Username>,
pub offer: Option<Offer>,
pub updated_at: Option<TimestampMs>,
pub updatable: bool,
}Expand description
The legacy flat HBA shape returned by the deprecated v1
*_human_bitcoin_address endpoints, built from the v2 types above.
Fields§
§username: Option<Username>Current username for BIP-353 and LNURL.
offer: Option<Offer>Current offer for fetching invoices on BIP-353.
updated_at: Option<TimestampMs>Last time the human Bitcoin address was updated.
updatable: boolWhether the human Bitcoin address can be updated. Always true for
generated addresses; for claimed addresses, depends on time-based
freeze rules.
Trait Implementations§
Source§impl Debug for HumanBitcoinAddressV1
impl Debug for HumanBitcoinAddressV1
Source§impl<'de> Deserialize<'de> for HumanBitcoinAddressV1
impl<'de> Deserialize<'de> for HumanBitcoinAddressV1
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 From<ActiveHumanBitcoinAddress> for HumanBitcoinAddressV1
impl From<ActiveHumanBitcoinAddress> for HumanBitcoinAddressV1
Source§fn from(active: ActiveHumanBitcoinAddress) -> Self
fn from(active: ActiveHumanBitcoinAddress) -> Self
Converts to this type from the input type.
Source§impl From<GetHumanBitcoinAddressResponse> for HumanBitcoinAddressV1
impl From<GetHumanBitcoinAddressResponse> for HumanBitcoinAddressV1
Source§fn from(resp: GetHumanBitcoinAddressResponse) -> Self
fn from(resp: GetHumanBitcoinAddressResponse) -> Self
Converts to this type from the input type.
Source§impl From<UpsertHumanBitcoinAddressResponse> for HumanBitcoinAddressV1
impl From<UpsertHumanBitcoinAddressResponse> for HumanBitcoinAddressV1
Source§fn from(resp: UpsertHumanBitcoinAddressResponse) -> Self
fn from(resp: UpsertHumanBitcoinAddressResponse) -> Self
Converts to this type from the input type.
Source§impl PartialEq for HumanBitcoinAddressV1
impl PartialEq for HumanBitcoinAddressV1
Source§fn eq(&self, other: &HumanBitcoinAddressV1) -> bool
fn eq(&self, other: &HumanBitcoinAddressV1) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for HumanBitcoinAddressV1
impl Serialize for HumanBitcoinAddressV1
impl StructuralPartialEq for HumanBitcoinAddressV1
Auto Trait Implementations§
impl Freeze for HumanBitcoinAddressV1
impl RefUnwindSafe for HumanBitcoinAddressV1
impl Send for HumanBitcoinAddressV1
impl Sync for HumanBitcoinAddressV1
impl Unpin for HumanBitcoinAddressV1
impl UnsafeUnpin for HumanBitcoinAddressV1
impl UnwindSafe for HumanBitcoinAddressV1
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