Struct shuttle_core::Account
[−]
[src]
pub struct Account { /* fields omitted */ }
Account represents a single account in the Stellar network and its sequence number.
Methods
impl Account
[src]
fn new(account_id: PublicKey, sequence: u64) -> Account
[src]
Create with account_id
and sequence
number.
fn account_id(&self) -> &PublicKey
[src]
Return the account public key.
fn increment_sequence(&mut self) -> u64
[src]
Increments the sequence number, returns the old sequence number.
fn sequence(&self) -> u64
[src]
Returns the sequence number.
Trait Implementations
impl Debug for Account
[src]
impl Clone for Account
[src]
fn clone(&self) -> Account
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl PartialEq for Account
[src]
fn eq(&self, __arg_0: &Account) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Account) -> bool
[src]
This method tests for !=
.