hopper-core 0.1.0

Core engine for the Hopper zero-copy state framework. Account memory architecture, ABI types, validation graphs, phased execution, zero-copy collections, layout evolution, and cross-program interfaces.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
//! Account metadata provider trait.

/// Trait for types that provide static metadata about themselves.
///
/// Implementors expose their account name and kind for schema generation
/// and introspection. Typically derived or manually implemented alongside
/// `HopperAccounts`.
pub trait AccountMetaProvider {
    /// Human-readable account name (e.g. "vault", "authority").
    fn account_name() -> &'static str;
    /// Account kind identifier (e.g. "HopperAccount", "Signer", "ProgramRef").
    fn account_kind() -> &'static str;
}