pub trait SchemaValidator<SchemaId> {
// Required methods
fn are_all_schema_ids_valid(schema_ids: &[SchemaId]) -> bool;
fn set_schema_count(n: SchemaId);
}
Expand description
This allows other Pallets to check validity of schema ids.
Required Methods§
Sourcefn are_all_schema_ids_valid(schema_ids: &[SchemaId]) -> bool
fn are_all_schema_ids_valid(schema_ids: &[SchemaId]) -> bool
Checks that a collection of SchemaIds are all valid
Sourcefn set_schema_count(n: SchemaId)
fn set_schema_count(n: SchemaId)
Set the schema counter for testing purposes.
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.