Struct iota_wallet::account::Account
source · [−]pub struct Account {
index: u32,
coin_type: u32,
alias: String,
pub(crate) public_addresses: Vec<AccountAddress>,
pub(crate) internal_addresses: Vec<AccountAddress>,
addresses_with_unspent_outputs: Vec<AddressWithUnspentOutputs>,
outputs: HashMap<OutputId, OutputData>,
locked_outputs: HashSet<OutputId>,
unspent_outputs: HashMap<OutputId, OutputData>,
transactions: HashMap<TransactionId, Transaction>,
pending_transactions: HashSet<TransactionId>,
incoming_transactions: HashMap<TransactionId, (TransactionPayload, Vec<OutputResponse>)>,
}
Expand description
An Account.
Fields
index: u32
The account index
coin_type: u32
The coin type
alias: String
The account alias.
public_addresses: Vec<AccountAddress>
Public addresses
internal_addresses: Vec<AccountAddress>
Internal addresses
addresses_with_unspent_outputs: Vec<AddressWithUnspentOutputs>
Addresses with unspent outputs
outputs: HashMap<OutputId, OutputData>
Outputs
locked_outputs: HashSet<OutputId>
Unspent outputs that are currently used as input for transactions
unspent_outputs: HashMap<OutputId, OutputData>
Unspent outputs
transactions: HashMap<TransactionId, Transaction>
Sent transactions
pending_transactions: HashSet<TransactionId>
Pending transactions
incoming_transactions: HashMap<TransactionId, (TransactionPayload, Vec<OutputResponse>)>
Transaction payloads for received outputs with inputs when not pruned before syncing, can be used to determine the sender address/es
Implementations
sourceimpl Account
impl Account
sourcepub fn public_addresses(&self) -> &Vec<AccountAddress>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
pub fn public_addresses(&self) -> &Vec<AccountAddress>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
Public addresses
sourcepub fn internal_addresses(&self) -> &Vec<AccountAddress>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
pub fn internal_addresses(&self) -> &Vec<AccountAddress>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
Internal addresses
sourcepub fn addresses_with_unspent_outputs(&self) -> &Vec<AddressWithUnspentOutputs>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
pub fn addresses_with_unspent_outputs(&self) -> &Vec<AddressWithUnspentOutputs>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
Addresses with unspent outputs
sourcepub fn outputs(&self) -> &HashMap<OutputId, OutputData>
pub fn outputs(&self) -> &HashMap<OutputId, OutputData>
Outputs
sourcepub fn locked_outputs(&self) -> &HashSet<OutputId>
pub fn locked_outputs(&self) -> &HashSet<OutputId>
Unspent outputs that are currently used as input for transactions
sourcepub fn unspent_outputs(&self) -> &HashMap<OutputId, OutputData>
pub fn unspent_outputs(&self) -> &HashMap<OutputId, OutputData>
Unspent outputs
sourcepub fn transactions(&self) -> &HashMap<TransactionId, Transaction>
pub fn transactions(&self) -> &HashMap<TransactionId, Transaction>
Sent transactions
sourcepub fn pending_transactions(&self) -> &HashSet<TransactionId>
pub fn pending_transactions(&self) -> &HashSet<TransactionId>
Pending transactions
sourcepub fn incoming_transactions(
&self
) -> &HashMap<TransactionId, (TransactionPayload, Vec<OutputResponse>)>
pub fn incoming_transactions(
&self
) -> &HashMap<TransactionId, (TransactionPayload, Vec<OutputResponse>)>
Transaction payloads for received outputs with inputs when not pruned before syncing, can be used to determine the sender address/es
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Account
impl<'de> Deserialize<'de> for Account
sourcefn 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
sourceimpl From<&Account> for AccountDto
impl From<&Account> for AccountDto
Auto Trait Implementations
impl RefUnwindSafe for Account
impl Send for Account
impl Sync for Account
impl Unpin for Account
impl UnwindSafe for Account
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more