Trait common_primitives::msa::SchemaGrantValidator
source · 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
Object Safety§
This trait is not object safe.