Skip to main content

AccountSchemaExt

Trait AccountSchemaExt 

Source
pub trait AccountSchemaExt {
    // Required methods
    fn manager_metadata_for<T: SchemaExport>(&self) -> Option<ManagerMetadata>;
    fn schema_bundle_for<T: SchemaExport>(&self) -> Option<SchemaBundle>;
}
Expand description

Bridge from a live AccountView to the schema bundle of a concrete layout type.

Required Methods§

Source

fn manager_metadata_for<T: SchemaExport>(&self) -> Option<ManagerMetadata>

Return manager metadata if the account header matches T.

Source

fn schema_bundle_for<T: SchemaExport>(&self) -> Option<SchemaBundle>

Return the full schema bundle if the account header matches T.

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.

Implementations on Foreign Types§

Source§

impl AccountSchemaExt for AccountView

Implementors§