moonbeam_runtime

Trait Get

pub trait Get<T> {
    // Required method
    fn get() -> T;
}
Expand description

A trait for querying a single value from a type.

It is not required that the value is constant.

Required Methods§

fn get() -> T

Return the current value.

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.

Implementations on Foreign Types§

§

impl Get<u32> for DefaultForRound

§

fn get() -> u32

§

impl Get<u32> for HintNumVariants

§

fn get() -> u32

§

impl Get<Vec<AssetFilter>> for AllAssets

§

fn get() -> Vec<AssetFilter>

§

impl Get<FixedU128> for InitialFactor

§

fn get() -> FixedU128

§

impl Get<FixedU128> for InitialFactor

§

fn get() -> FixedU128

§

impl Get<FixedU128> for NextFeeMultiplierOnEmpty

§

fn get() -> FixedU128

§

impl Get<FixedU128> for UpwardInitialDeliveryFeeFactor

§

fn get() -> FixedU128

§

impl<C, A> Get<<C as Currency<A>>::Balance> for ActiveIssuanceOf<C, A>
where C: Currency<A>,

§

fn get() -> <C as Currency<A>>::Balance

§

impl<C, A> Get<<C as Currency<A>>::Balance> for TotalIssuanceOf<C, A>
where C: Currency<A>,

§

fn get() -> <C as Currency<A>>::Balance

§

impl<I> Get<I> for BlockExecutionWeight
where I: From<Weight>,

§

fn get() -> I

§

impl<I> Get<I> for ExtrinsicBaseWeight
where I: From<Weight>,

§

fn get() -> I

§

impl<I> Get<I> for MaxAssetTransferFilters
where I: From<u32>,

§

fn get() -> I

§

impl<I> Get<I> for MaxDispatchErrorLen
where I: From<u32>,

§

fn get() -> I

§

impl<I> Get<I> for MaxPalletNameLen
where I: From<u32>,

§

fn get() -> I

§

impl<I> Get<I> for MaxPalletNameLen
where I: From<u32>,

§

fn get() -> I

§

impl<I> Get<I> for MaxPalletNameLen
where I: From<u32>,

§

fn get() -> I

§

impl<I> Get<I> for MaxPalletsInfo
where I: From<u32>,

§

fn get() -> I

§

impl<I> Get<I> for MaxPalletsInfo
where I: From<u32>,

§

fn get() -> I

§

impl<I> Get<I> for MaxPalletsInfo
where I: From<u32>,

§

fn get() -> I

§

impl<I> Get<I> for ParityDbWeight
where I: From<RuntimeDbWeight>,

§

fn get() -> I

§

impl<I> Get<I> for RocksDbWeight
where I: From<RuntimeDbWeight>,

§

fn get() -> I

§

impl<I, C> Get<I> for TestBlockHashCount<C>
where I: From<u32>, C: Get<u32>,

§

fn get() -> I

§

impl<Origin, Size, HeapSize> Get<u32> for MaxMessageLen<Origin, Size, HeapSize>
where Origin: MaxEncodedLen, Size: MaxEncodedLen + Into<u32>, HeapSize: Get<Size>,

§

fn get() -> u32

§

impl<Para> Get<u32> for ParachainIdOf<Para>
where Para: Parachain,

§

fn get() -> u32

§

impl<Prefix, Hasher1, Key1, Hasher2, Key2, Value, QueryKind, OnEmpty, MaxValues> Get<u32> for KeyLenOf<StorageDoubleMap<Prefix, Hasher1, Key1, Hasher2, Key2, Value, QueryKind, OnEmpty, MaxValues>>
where Prefix: StorageInstance, Hasher1: StorageHasher, Hasher2: StorageHasher, Key1: MaxEncodedLen, Key2: MaxEncodedLen,

§

fn get() -> u32

§

impl<Prefix, Hasher, Key, Value, QueryKind, OnEmpty, MaxValues> Get<u32> for KeyLenOf<StorageMap<Prefix, Hasher, Key, Value, QueryKind, OnEmpty, MaxValues>>
where Prefix: StorageInstance, Hasher: StorageHasher, Key: FullCodec + MaxEncodedLen,

§

fn get() -> u32

Source§

impl<R> Get<u32> for GetKeysSize<R>
where R: Config,

§

impl<T> Get<<T as Config>::AuthorId> for Pallet<T>
where T: Config,

§

fn get() -> <T as Config>::AuthorId

§

impl<T> Get<u32> for MaxEncodedLenOf<T>
where T: MaxEncodedLen,

§

fn get() -> u32

§

impl<T> Get<u32> for VariantCountOf<T>
where T: VariantCount,

§

fn get() -> u32

§

impl<T> Get<u32> for VersionDiscoveryQueueSize<T>
where T: Config,

§

fn get() -> u32

§

impl<T> Get<u64> for Pallet<T>
where T: Config,

§

fn get() -> u64

Source§

impl<T> Get<Vec<<T as Config>::AccountId>> for Pallet<T>
where T: Config,

Source§

fn get() -> Vec<<T as Config>::AccountId>

§

impl<T> Get<H256> for IntermediateStateRoot<T>
where T: Get<RuntimeVersion>,

§

fn get() -> H256

§

impl<T> Get<Id> for Pallet<T>
where T: Config,

§

fn get() -> Id

§

impl<T> Get<NonZeroU32> for DefaultEligibilityValue<T>
where T: Config,

§

fn get() -> NonZeroU32

§

impl<T> Get<Percent> for Half<T>
where T: Config,

§

fn get() -> Percent

§

impl<T> Get<T> for ()
where T: Default,

§

fn get() -> T

§

impl<T, I> Get<Option<u32>> for MaybeHeadersToKeep<T, I>
where T: Config<I>, I: 'static,

§

fn get() -> Option<u32>

§

impl<T, I> Get<Option<u32>> for MaybeMaxParachains<T, I>
where T: Config<I>, I: 'static,

§

fn get() -> Option<u32>

§

impl<T, I> Get<Option<u32>> for MaybeMaxTotalParachainHashes<T, I>
where T: Config<I>, I: 'static,

§

fn get() -> Option<u32>

§

impl<T, O> Get<u32> for IntoU32<T, O>
where T: Get<O>, O: Into<u32>,

§

fn get() -> u32

§

impl<T, P> Get<(u32, u32)> for ActiveConfigHrmpChannelSizeAndCapacityRatio<T, P>
where T: Config, P: Get<Percent>,

§

fn get() -> (u32, u32)

§

impl<T, P> Get<u32> for ClassCountOf<P, T>
where P: Polling<T>,

§

fn get() -> u32

Source§

impl<T, R> Get<u32> for AddGet<T, R>
where T: Get<u32>, R: Get<u32>,

Source§

impl<_I> Get<_I> for GlobalConsensusLocation
where _I: From<Location>,

Source§

fn get() -> _I

Source§

impl<_I> Get<_I> for GlobalConsensusLocation
where _I: From<Location>,

Source§

fn get() -> _I

Source§

impl<_I> Get<_I> for AssetManagerPalletName
where _I: From<&'static str>,

Source§

fn get() -> _I

Source§

impl<_I> Get<_I> for AssetsPalletName
where _I: From<&'static str>,

Source§

fn get() -> _I

§

impl<_I> Get<_I> for AdjustmentVariable
where _I: From<FixedU128>,

§

fn get() -> _I

§

impl<_I> Get<_I> for BlockExecutionWeight
where _I: From<Weight>,

§

fn get() -> _I

§

impl<_I> Get<_I> for BlockGasLimit
where _I: From<U256>,

§

fn get() -> _I

§

impl<_I> Get<_I> for BlockHashCount
where _I: From<u32>,

§

fn get() -> _I

§

impl<_I> Get<_I> for BlockLength
where _I: From<BlockLength>,

§

fn get() -> _I

§

impl<_I> Get<_I> for BlockLength
where _I: From<BlockLength>,

§

fn get() -> _I

§

impl<_I> Get<_I> for BlockLength
where _I: From<BlockLength>,

§

fn get() -> _I

§

impl<_I> Get<_I> for BlockWeights
where _I: From<BlockWeights>,

§

fn get() -> _I

§

impl<_I> Get<_I> for BlockWeights
where _I: From<BlockWeights>,

§

fn get() -> _I

§

impl<_I> Get<_I> for BlockWeightsForAsyncBacking
where _I: From<BlockWeights>,

§

fn get() -> _I

§

impl<_I> Get<_I> for BondingDuration
where _I: From<u32>,

§

fn get() -> _I

§

impl<_I> Get<_I> for ChainId
where _I: From<u64>,

§

fn get() -> _I

§

impl<_I> Get<_I> for CurrentXcmVersion
where _I: From<u32>,

§

fn get() -> _I

§

impl<_I> Get<_I> for ExtrinsicBaseWeight
where _I: From<Weight>,

§

fn get() -> _I

§

impl<_I> Get<_I> for GasLimitPovSizeRatio
where _I: From<u64>,

§

fn get() -> _I

§

impl<_I> Get<_I> for GasLimitStorageGrowthRatio
where _I: From<u64>,

§

fn get() -> _I

§

impl<_I> Get<_I> for LockedAssets
where _I: From<Vec<(Location, Asset)>>,

§

fn get() -> _I

§

impl<_I> Get<_I> for MaxAssetsIntoHolding
where _I: From<u32>,

§

fn get() -> _I

§

impl<_I> Get<_I> for MaxAuthorizedAliases
where _I: From<u32>,

§

fn get() -> _I

§

impl<_I> Get<_I> for MaximumMultiplier
where _I: From<FixedU128>,

§

fn get() -> _I

§

impl<_I> Get<_I> for MinimumMultiplier
where _I: From<FixedU128>,

§

fn get() -> _I

§

impl<_I> Get<_I> for PostBlockAndTxnHashes
where _I: From<PostLogContent>,

§

fn get() -> _I

§

impl<_I> Get<_I> for SessionsPerEra
where _I: From<u32>,

§

fn get() -> _I

§

impl<_I> Get<_I> for SubscriptionRequests
where _I: From<Vec<(Location, Option<(u64, Weight)>)>>,

§

fn get() -> _I

§

impl<_I> Get<_I> for TargetBlockFullness
where _I: From<Perquintill>,

§

fn get() -> _I

§

impl<_I> Get<_I> for TestMaxServiceWeight
where _I: From<Weight>,

§

fn get() -> _I

§

impl<_I> Get<_I> for TrappedAssets
where _I: From<Vec<(Location, Assets)>>,

§

fn get() -> _I

§

impl<_I> Get<_I> for WeightPerGas
where _I: From<Weight>,

§

fn get() -> _I

§

impl<const N: u64> Get<H160> for AddressU64<N>

§

fn get() -> H160

Implementors§

Source§

impl Get<bool> for AssetHubMigrationStarted

Source§

impl Get<u128> for PalletRandomnessDepositU128

Source§

impl Get<BlockWeights> for RuntimeBlockWeights

Source§

impl Get<Slot> for RelayChainSlotProvider

§

impl<T> Get<T> for GetDefault
where T: Default,

Source§

impl<_I: From<&'static str>> Get<_I> for KusamaBridgeParachainPalletName

Source§

impl<_I: From<&'static [u8]>> Get<_I> for SignatureNetworkIdentifier

Source§

impl<_I: From<(AssetFilter, Location)>> Get<_I> for RelayChainNativeAssetFromAssetHub

Source§

impl<_I: From<RuntimeHoldReason>> Get<_I> for PreimageHoldReason

Source§

impl<_I: From<Option<Balance>>> Get<_I> for LinearInflationThreshold

Source§

impl<_I: From<u32>> Get<_I> for MaxKusamaParaHeadDataSize

Source§

impl<_I: From<u32>> Get<_I> for ParachainHeadsToKeep

Source§

impl<_I: From<u32>> Get<_I> for RelayChainHeadersToKeep

Source§

impl<_I: From<u32>> Get<_I> for MaxAdditionalFields

Source§

impl<_I: From<u32>> Get<_I> for MaxRegistrars

Source§

impl<_I: From<u32>> Get<_I> for MaxSignatories

Source§

impl<_I: From<u32>> Get<_I> for MaxSubAccounts

Source§

impl<_I: From<u32>> Get<_I> for MaxSuffixLength

Source§

impl<_I: From<u32>> Get<_I> for MaxUsernameLength

Source§

impl<_I: From<u32>> Get<_I> for PendingUsernameExpiration

Source§

impl<_I: From<u32>> Get<_I> for AssetHubMigrationStartsAtRelayBlock

Source§

impl<_I: From<u32>> Get<_I> for moonbeam_runtime::xcm_config::MaxAssetsIntoHolding

Source§

impl<_I: From<u32>> Get<_I> for MaxInstructions

Source§

impl<_I: From<u32>> Get<_I> for MessageQueueHeapSize

Source§

impl<_I: From<u32>> Get<_I> for MessageQueueMaxStale

Source§

impl<_I: From<u64>> Get<_I> for moonbeam_runtime::GasLimitPovSizeRatio

Source§

impl<_I: From<u64>> Get<_I> for moonbeam_runtime::GasLimitStorageGrowthRatio

Source§

impl<_I: From<u64>> Get<_I> for Erc20XcmBridgeTransferGasLimit

Source§

impl<_I: From<usize>> Get<_I> for MaxAssetsForTransfer

Source§

impl<_I: From<BTreeSet<(Location, Junction)>>> Get<_I> for UniversalAliases

Source§

impl<_I: From<RuntimeOrigin>> Get<_I> for RelayChainOrigin

Source§

impl<_I: From<AccountId>> Get<_I> for TreasuryAccount

Source§

impl<_I: From<AccountId>> Get<_I> for XcmFeesAccount

Source§

impl<_I: From<Balance>> Get<_I> for BridgeDeposit

Source§

impl<_I: From<Balance>> Get<_I> for SubmissionDeposit

Source§

impl<_I: From<Balance>> Get<_I> for DepositBase

Source§

impl<_I: From<Balance>> Get<_I> for DepositFactor

Source§

impl<_I: From<Balance>> Get<_I> for ExistentialDeposit

Source§

impl<_I: From<Balance>> Get<_I> for MaxSpendBalance

Source§

impl<_I: From<Balance>> Get<_I> for PreimageBaseDeposit

Source§

impl<_I: From<Balance>> Get<_I> for PreimageByteDeposit

Source§

impl<_I: From<BlockNumber>> Get<_I> for AlarmInterval

Source§

impl<_I: From<BlockNumber>> Get<_I> for UndecidingTimeout

Source§

impl<_I: From<BlockNumber>> Get<_I> for VoteLockingPeriod

Source§

impl<_I: From<MoonbeamPrecompiles<Runtime>>> Get<_I> for PrecompilesValue

Source§

impl<_I: From<AggregateMessageOrigin>> Get<_I> for moonbeam_runtime::RelayOrigin

Source§

impl<_I: From<AggregateMessageOrigin>> Get<_I> for moonbeam_runtime::xcm_config::RelayOrigin

Source§

impl<_I: From<Asset>> Get<_I> for MaxHrmpRelayFee

Source§

impl<_I: From<AssetFilter>> Get<_I> for RelayLocationFilter

Source§

impl<_I: From<BlockLength>> Get<_I> for moonbeam_runtime::BlockLength

Source§

impl<_I: From<InteriorLocation>> Get<_I> for BridgePolkadotToKusamaMessagesPalletInstance

Source§

impl<_I: From<InteriorLocation>> Get<_I> for UniversalLocation

Source§

impl<_I: From<Location>> Get<_I> for KusamaGlobalConsensusNetworkLocation

Source§

impl<_I: From<Location>> Get<_I> for AssetHubLocation

Source§

impl<_I: From<Location>> Get<_I> for Erc20XcmBridgePalletLocation

Source§

impl<_I: From<Location>> Get<_I> for RelayLocation

Source§

impl<_I: From<Location>> Get<_I> for SelfLocation

Source§

impl<_I: From<Location>> Get<_I> for SelfLocationAbsolute

Source§

impl<_I: From<Location>> Get<_I> for SelfReserve

Source§

impl<_I: From<Multiplier>> Get<_I> for moonbeam_runtime::AdjustmentVariable

Source§

impl<_I: From<Multiplier>> Get<_I> for moonbeam_runtime::MaximumMultiplier

Source§

impl<_I: From<Multiplier>> Get<_I> for moonbeam_runtime::MinimumMultiplier

Source§

impl<_I: From<NetworkId>> Get<_I> for KusamaGlobalConsensusNetwork

Source§

impl<_I: From<NetworkId>> Get<_I> for RelayNetwork

Source§

impl<_I: From<PalletId>> Get<_I> for TreasuryId

Source§

impl<_I: From<Perbill>> Get<_I> for InitializationPayment

Source§

impl<_I: From<Perbill>> Get<_I> for RelaySignaturesThreshold

Source§

impl<_I: From<Permill>> Get<_I> for ProposalBond

Source§

impl<_I: From<Perquintill>> Get<_I> for moonbeam_runtime::TargetBlockFullness

Source§

impl<_I: From<PostLogContent>> Get<_I> for moonbeam_runtime::PostBlockAndTxnHashes

Source§

impl<_I: From<RuntimeVersion>> Get<_I> for Version

Source§

impl<_I: From<U256>> Get<_I> for moonbeam_runtime::BlockGasLimit

Source§

impl<_I: From<Weight>> Get<_I> for MaxProposalWeight

Source§

impl<_I: From<Weight>> Get<_I> for MaxServiceWeight

Source§

impl<_I: From<Weight>> Get<_I> for ReservedDmpWeight

Source§

impl<_I: From<Weight>> Get<_I> for ReservedXcmpWeight

Source§

impl<_I: From<Weight>> Get<_I> for moonbeam_runtime::WeightPerGas

Source§

impl<_I: From<Weight>> Get<_I> for BaseXcmWeight

Source§

impl<_I: From<Weight>> Get<_I> for MessageQueueServiceWeight

Source§

impl<_I: From<[u8; 4]>> Get<_I> for OrbiterReserveIdentifier

§

impl<const N: i128> Get<Option<i8>> for ConstInt<N>

§

impl<const N: i128> Get<Option<i16>> for ConstInt<N>

§

impl<const N: i128> Get<Option<i32>> for ConstInt<N>

§

impl<const N: i128> Get<Option<i64>> for ConstInt<N>

§

impl<const N: i128> Get<Option<i128>> for ConstInt<N>

§

impl<const N: i128> Get<i8> for ConstInt<N>

§

impl<const N: i128> Get<i16> for ConstInt<N>

§

impl<const N: i128> Get<i32> for ConstInt<N>

§

impl<const N: i128> Get<i64> for ConstInt<N>

§

impl<const N: i128> Get<i128> for ConstInt<N>

§

impl<const N: u128> Get<Option<u8>> for ConstUint<N>

§

impl<const N: u128> Get<Option<u16>> for ConstUint<N>

§

impl<const N: u128> Get<Option<u32>> for ConstUint<N>

§

impl<const N: u128> Get<Option<u64>> for ConstUint<N>

§

impl<const N: u128> Get<Option<u128>> for ConstUint<N>

§

impl<const N: u128> Get<Option<usize>> for ConstUint<N>

§

impl<const N: u128> Get<u8> for ConstUint<N>

§

impl<const N: u128> Get<u16> for ConstUint<N>

§

impl<const N: u128> Get<u32> for ConstUint<N>

§

impl<const N: u128> Get<u64> for ConstUint<N>

§

impl<const N: u128> Get<u128> for ConstUint<N>

§

impl<const N: u128> Get<usize> for ConstUint<N>

§

impl<const T: bool> Get<Option<bool>> for ConstBool<T>

§

impl<const T: bool> Get<bool> for ConstBool<T>

§

impl<const T: i8> Get<Option<i8>> for ConstI8<T>

§

impl<const T: i8> Get<i8> for ConstI8<T>

§

impl<const T: i16> Get<Option<i16>> for ConstI16<T>

§

impl<const T: i16> Get<i16> for ConstI16<T>

§

impl<const T: i32> Get<Option<i32>> for ConstI32<T>

§

impl<const T: i32> Get<i32> for ConstI32<T>

§

impl<const T: i64> Get<Option<i64>> for ConstI64<T>

§

impl<const T: i64> Get<i64> for ConstI64<T>

§

impl<const T: i128> Get<Option<i128>> for ConstI128<T>

§

impl<const T: i128> Get<i128> for ConstI128<T>

§

impl<const T: u8> Get<Option<u8>> for ConstU8<T>

§

impl<const T: u8> Get<u8> for ConstU8<T>

§

impl<const T: u16> Get<Option<u16>> for ConstU16<T>

§

impl<const T: u16> Get<u16> for ConstU16<T>

§

impl<const T: u32> Get<Option<u32>> for ConstU32<T>

§

impl<const T: u32> Get<u32> for ConstU32<T>

§

impl<const T: u64> Get<Option<u64>> for ConstU64<T>

§

impl<const T: u64> Get<u64> for ConstU64<T>

§

impl<const T: u128> Get<Option<u128>> for ConstU128<T>

§

impl<const T: u128> Get<u128> for ConstU128<T>