pub struct AddressEntry {
pub status: AddressStatus,
pub address: Address<NetworkUnchecked>,
pub account: AddrAccount,
pub index: u32,
}Expand description
Represents an entry in the address store.
The AddressEntry contains information about a specific address, including its
status, account type, and index.
§Fields
status: The status of the address (used, unused, etc.).address: The Bitcoin address associated with this entry.account: The account type (receiving or change).index: The index of the address in the generation sequence.
Fields§
§status: AddressStatus§address: Address<NetworkUnchecked>§account: AddrAccount§index: u32Implementations§
Source§impl AddressEntry
impl AddressEntry
Sourcepub fn script(&self) -> ScriptBuf
pub fn script(&self) -> ScriptBuf
Returns the script public key of the address.
§Returns
The script public key associated with this entry.
Sourcepub fn set_status(&mut self, status: AddressStatus)
pub fn set_status(&mut self, status: AddressStatus)
Sourcepub fn status(&self) -> AddressStatus
pub fn status(&self) -> AddressStatus
Sourcepub fn account(&self) -> AddrAccount
pub fn account(&self) -> AddrAccount
Returns the account type of the address entry.
§Returns
The account type (receiving or change) of this entry.
Sourcepub fn account_u32(&self) -> u32
pub fn account_u32(&self) -> u32
Sourcepub fn address(&self) -> Address<NetworkUnchecked>
pub fn address(&self) -> Address<NetworkUnchecked>
Sourcepub fn clone_boxed(&self) -> Box<Self>
pub fn clone_boxed(&self) -> Box<Self>
Clones the address entry and returns it as a boxed instance.
§Returns
A Box<Self> containing the cloned address entry.
Trait Implementations§
Source§impl Clone for AddressEntry
impl Clone for AddressEntry
Source§fn clone(&self) -> AddressEntry
fn clone(&self) -> AddressEntry
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 AddressEntry
impl Debug for AddressEntry
Source§impl<'de> Deserialize<'de> for AddressEntry
impl<'de> Deserialize<'de> for AddressEntry
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<AddressEntry> for RustAddress
impl From<AddressEntry> for RustAddress
Source§fn from(value: AddressEntry) -> Self
fn from(value: AddressEntry) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for AddressEntry
impl RefUnwindSafe for AddressEntry
impl Send for AddressEntry
impl Sync for AddressEntry
impl Unpin for AddressEntry
impl UnsafeUnpin for AddressEntry
impl UnwindSafe for AddressEntry
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