Description

Account represents a single account in the Stellar network and its sequence number. Account tracks the sequence number as it is used by TransactionBuilder

pub struct Account {
    account_id: String,
    sequence: BigUint,
}

Interface Code

pub trait Account {
		// Creates a new Account
    fn new(account_id: &str, sequence: &str) -> Result<Self, Box<dyn Error>>
	  // Returns the account identifier 
		fn account_id(&self) -> &str;
		// Returns the sequence number
    fn sequence_number(&self) -> String;
		// Increments the sequence number
    fn increment_sequence_number(&mut self);
}

Interface Code Link

https://github.com/rahul-soshte/rs-stellar-base/blob/main/src/account.rs