common_primitives::schema

Trait SchemaValidator

Source
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§

Source

fn are_all_schema_ids_valid(schema_ids: &[SchemaId]) -> bool

Checks that a collection of SchemaIds are all valid

Source

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.

Implementors§