hopper_core/accounts/meta.rs
1//! Account metadata provider trait.
2
3/// Trait for types that provide static metadata about themselves.
4///
5/// Implementors expose their account name and kind for schema generation
6/// and introspection. Typically derived or manually implemented alongside
7/// `HopperAccounts`.
8pub trait AccountMetaProvider {
9 /// Human-readable account name (e.g. "vault", "authority").
10 fn account_name() -> &'static str;
11 /// Account kind identifier (e.g. "HopperAccount", "Signer", "ProgramRef").
12 fn account_kind() -> &'static str;
13}