Trait ArrangeAccounts

Source
pub trait ArrangeAccounts {
    type ArrangedAccounts;

    // Required method
    fn arrange_accounts(
        accounts: &[AccountMeta],
    ) -> Option<Self::ArrangedAccounts>;
}
Expand description

A trait for defining a custom arrangement of Solana account metadata.

The ArrangeAccounts trait provides an interface for structuring account metadata in a custom format.

§Associated Types

  • ArrangedAccounts: The output type representing the custom arrangement of accounts.

Required Associated Types§

Required Methods§

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§