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