Trait common_primitives::msa::ProviderLookup
source · pub trait ProviderLookup {
type BlockNumber;
type MaxSchemaGrantsPerDelegation: Get<u32>;
type SchemaId;
// Required method
fn get_delegation_of(
delegator: DelegatorId,
provider: ProviderId
) -> Option<Delegation<Self::SchemaId, Self::BlockNumber, Self::MaxSchemaGrantsPerDelegation>>;
}
Expand description
A behavior that allows for looking up delegator-provider relationships
Required Associated Types§
sourcetype BlockNumber
type BlockNumber
Type for block number.
sourcetype MaxSchemaGrantsPerDelegation: Get<u32>
type MaxSchemaGrantsPerDelegation: Get<u32>
Type for maximum number of schemas that can be granted to a provider.
Required Methods§
sourcefn get_delegation_of(
delegator: DelegatorId,
provider: ProviderId
) -> Option<Delegation<Self::SchemaId, Self::BlockNumber, Self::MaxSchemaGrantsPerDelegation>>
fn get_delegation_of( delegator: DelegatorId, provider: ProviderId ) -> Option<Delegation<Self::SchemaId, Self::BlockNumber, Self::MaxSchemaGrantsPerDelegation>>
Gets the relationship information for this delegator, provider pair
Object Safety§
This trait is not object safe.