[][src]Trait interledger_service::Account

pub trait Account: Clone + Send + Sized + Debug {
    type AccountId: Eq + Hash + Debug + Display + Send + Sync + Copy;
    fn id(&self) -> Self::AccountId;
}

The base trait that Account types from other Services extend. This trait only assumes that the account has an ID that can be compared with others.

Each service can extend the Account type to include additional details they require. Store implementations will implement these Account traits for a concrete type that they will load from the database.

Associated Types

Loading content...

Required methods

fn id(&self) -> Self::AccountId

Loading content...

Implementors

Loading content...