pub struct ActiveHumanBitcoinAddress {
pub hba: HumanBitcoinAddress,
pub updatable: bool,
}Expand description
The user’s active Human Bitcoin Address, paired with whether they may
currently change it. This is what get/upsert_*_human_bitcoin_address
serve back to the app.
Fields§
§hba: HumanBitcoinAddressThe active HBA itself.
updatable: boolWhether the user can currently claim a different custom username.
true when the user has no active custom HBA (never claimed one, or
theirs has lapsed), is within the 24h grace period, or is past the
90-day freeze; false while frozen with an active custom HBA.
Trait Implementations§
Source§impl Clone for ActiveHumanBitcoinAddress
impl Clone for ActiveHumanBitcoinAddress
Source§fn clone(&self) -> ActiveHumanBitcoinAddress
fn clone(&self) -> ActiveHumanBitcoinAddress
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 ActiveHumanBitcoinAddress
impl Debug for ActiveHumanBitcoinAddress
Source§impl<'de> Deserialize<'de> for ActiveHumanBitcoinAddress
impl<'de> Deserialize<'de> for ActiveHumanBitcoinAddress
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ActiveHumanBitcoinAddress, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ActiveHumanBitcoinAddress, <__D as Deserializer<'de>>::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) -> HumanBitcoinAddressV1
fn from(active: ActiveHumanBitcoinAddress) -> HumanBitcoinAddressV1
Converts to this type from the input type.
Source§impl PartialEq for ActiveHumanBitcoinAddress
impl PartialEq for ActiveHumanBitcoinAddress
Source§fn eq(&self, other: &ActiveHumanBitcoinAddress) -> bool
fn eq(&self, other: &ActiveHumanBitcoinAddress) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ActiveHumanBitcoinAddress
impl Serialize for ActiveHumanBitcoinAddress
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for ActiveHumanBitcoinAddress
Auto Trait Implementations§
impl Freeze for ActiveHumanBitcoinAddress
impl RefUnwindSafe for ActiveHumanBitcoinAddress
impl Send for ActiveHumanBitcoinAddress
impl Sync for ActiveHumanBitcoinAddress
impl Unpin for ActiveHumanBitcoinAddress
impl UnsafeUnpin for ActiveHumanBitcoinAddress
impl UnwindSafe for ActiveHumanBitcoinAddress
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