pub trait SchemaGrantValidator<BlockNumber> {
// Required method
fn ensure_valid_schema_grant(
provider_id: ProviderId,
delegator_id: DelegatorId,
schema_id: SchemaId,
block_number: BlockNumber,
) -> DispatchResult;
}
Expand description
A behavior that allows for validating a schema grant
Required Methods§
Sourcefn ensure_valid_schema_grant(
provider_id: ProviderId,
delegator_id: DelegatorId,
schema_id: SchemaId,
block_number: BlockNumber,
) -> DispatchResult
fn ensure_valid_schema_grant( provider_id: ProviderId, delegator_id: DelegatorId, schema_id: SchemaId, block_number: BlockNumber, ) -> DispatchResult
Validates if the provider is allowed to use the particular schema id currently
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.