Struct stacks_rs::wallet::StacksAccount
source · pub struct StacksAccount {
pub index: u32,
pub public_key: StacksPublicKey,
pub private_key: StacksPrivateKey,
}Expand description
A StacksAccount instance, which contains a public key, a private key, and a derivation index.
Fields§
§index: u32§public_key: StacksPublicKey§private_key: StacksPrivateKeyImplementations§
source§impl StacksAccount
impl StacksAccount
sourcepub fn get_address(&self, version: AddressVersion) -> Result<String, Error>
pub fn get_address(&self, version: AddressVersion) -> Result<String, Error>
Returns the address of the account for a given version.
Trait Implementations§
source§impl Clone for StacksAccount
impl Clone for StacksAccount
source§fn clone(&self) -> StacksAccount
fn clone(&self) -> StacksAccount
Returns a copy of the value. Read more
1.0.0 · 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 StacksAccount
impl Debug for StacksAccount
source§impl PartialEq for StacksAccount
impl PartialEq for StacksAccount
source§fn eq(&self, other: &StacksAccount) -> bool
fn eq(&self, other: &StacksAccount) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Copy for StacksAccount
impl Eq for StacksAccount
impl StructuralPartialEq for StacksAccount
Auto Trait Implementations§
impl RefUnwindSafe for StacksAccount
impl Send for StacksAccount
impl Sync for StacksAccount
impl Unpin for StacksAccount
impl UnwindSafe for StacksAccount
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.