Trait gclient::ext::sp_runtime::scale_info::TypeInfo
pub trait TypeInfo {
type Identity: 'static + ?Sized;
// Required method
fn type_info() -> Type;
}
Expand description
Implementors return their meta type information.
Required Associated Types§
type Identity: 'static + ?Sized
type Identity: 'static + ?Sized
The type identifying for which type info is provided.
§Note
This is used to uniquely identify a type via core::any::TypeId::of
. In most cases it
will just be Self
, but can be used to unify different types which have the same encoded
representation e.g. reference types Box<T>
, &T
and &mut T
.
Required Methods§
Object Safety§
This trait is not object safe.
Implementations on Foreign Types§
source§impl TypeInfo for MessageWaitedType
impl TypeInfo for MessageWaitedType
source§impl TypeInfo for ErrorReplyReason
impl TypeInfo for ErrorReplyReason
source§impl TypeInfo for SimpleExecutionError
impl TypeInfo for SimpleExecutionError
source§impl TypeInfo for SuccessReplyReason
impl TypeInfo for SuccessReplyReason
source§impl TypeInfo for RuntimeBufferSizeError
impl TypeInfo for RuntimeBufferSizeError
source§impl TypeInfo for InstantiatedSectionSizes
impl TypeInfo for InstantiatedSectionSizes
source§impl TypeInfo for InstrumentedCode
impl TypeInfo for InstrumentedCode
source§impl TypeInfo for IntoPageBufError
impl TypeInfo for IntoPageBufError
source§impl TypeInfo for IncomingDispatch
impl TypeInfo for IncomingDispatch
source§impl TypeInfo for IncomingMessage
impl TypeInfo for IncomingMessage
source§impl TypeInfo for StoredDelayedDispatch
impl TypeInfo for StoredDelayedDispatch
source§impl TypeInfo for PayloadSizeError
impl TypeInfo for PayloadSizeError
source§impl TypeInfo for UserStoredMessage
impl TypeInfo for UserStoredMessage
source§impl TypeInfo for GasReservationSlot
impl TypeInfo for GasReservationSlot
source§impl TypeInfo for ReservationNonce
impl TypeInfo for ReservationNonce
source§impl<'a> TypeInfo for LimitedStr<'a>where
'a: 'static,
impl<'a> TypeInfo for LimitedStr<'a>where
'a: 'static,
§impl<A, B, C, D> TypeInfo for (A, B, C, D)
impl<A, B, C, D> TypeInfo for (A, B, C, D)
§impl<A, B, C, D, E> TypeInfo for (A, B, C, D, E)
impl<A, B, C, D, E> TypeInfo for (A, B, C, D, E)
§impl<A, B, C, D, E, F> TypeInfo for (A, B, C, D, E, F)
impl<A, B, C, D, E, F> TypeInfo for (A, B, C, D, E, F)
§impl<A, B, C, D, E, F, G> TypeInfo for (A, B, C, D, E, F, G)
impl<A, B, C, D, E, F, G> TypeInfo for (A, B, C, D, E, F, G)
§impl<A, B, C, D, E, F, G, H> TypeInfo for (A, B, C, D, E, F, G, H)
impl<A, B, C, D, E, F, G, H> TypeInfo for (A, B, C, D, E, F, G, H)
§impl<A, B, C, D, E, F, G, H, I> TypeInfo for (A, B, C, D, E, F, G, H, I)
impl<A, B, C, D, E, F, G, H, I> TypeInfo for (A, B, C, D, E, F, G, H, I)
§impl<A, B, C, D, E, F, G, H, I, J> TypeInfo for (A, B, C, D, E, F, G, H, I, J)
impl<A, B, C, D, E, F, G, H, I, J> TypeInfo for (A, B, C, D, E, F, G, H, I, J)
§impl<A, B, C, D, E, F, G, H, I, J, K> TypeInfo for (A, B, C, D, E, F, G, H, I, J, K)
impl<A, B, C, D, E, F, G, H, I, J, K> TypeInfo for (A, B, C, D, E, F, G, H, I, J, K)
§impl<A, B, C, D, E, F, G, H, I, J, K, L> TypeInfo for (A, B, C, D, E, F, G, H, I, J, K, L)
impl<A, B, C, D, E, F, G, H, I, J, K, L> TypeInfo for (A, B, C, D, E, F, G, H, I, J, K, L)
§impl<A, B, C, D, E, F, G, H, I, J, K, L, M> TypeInfo for (A, B, C, D, E, F, G, H, I, J, K, L, M)where
A: TypeInfo + 'static,
B: TypeInfo + 'static,
C: TypeInfo + 'static,
D: TypeInfo + 'static,
E: TypeInfo + 'static,
F: TypeInfo + 'static,
G: TypeInfo + 'static,
H: TypeInfo + 'static,
I: TypeInfo + 'static,
J: TypeInfo + 'static,
K: TypeInfo + 'static,
L: TypeInfo + 'static,
M: TypeInfo + 'static,
impl<A, B, C, D, E, F, G, H, I, J, K, L, M> TypeInfo for (A, B, C, D, E, F, G, H, I, J, K, L, M)where
A: TypeInfo + 'static,
B: TypeInfo + 'static,
C: TypeInfo + 'static,
D: TypeInfo + 'static,
E: TypeInfo + 'static,
F: TypeInfo + 'static,
G: TypeInfo + 'static,
H: TypeInfo + 'static,
I: TypeInfo + 'static,
J: TypeInfo + 'static,
K: TypeInfo + 'static,
L: TypeInfo + 'static,
M: TypeInfo + 'static,
§impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N> TypeInfo for (A, B, C, D, E, F, G, H, I, J, K, L, M, N)where
A: TypeInfo + 'static,
B: TypeInfo + 'static,
C: TypeInfo + 'static,
D: TypeInfo + 'static,
E: TypeInfo + 'static,
F: TypeInfo + 'static,
G: TypeInfo + 'static,
H: TypeInfo + 'static,
I: TypeInfo + 'static,
J: TypeInfo + 'static,
K: TypeInfo + 'static,
L: TypeInfo + 'static,
M: TypeInfo + 'static,
N: TypeInfo + 'static,
impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N> TypeInfo for (A, B, C, D, E, F, G, H, I, J, K, L, M, N)where
A: TypeInfo + 'static,
B: TypeInfo + 'static,
C: TypeInfo + 'static,
D: TypeInfo + 'static,
E: TypeInfo + 'static,
F: TypeInfo + 'static,
G: TypeInfo + 'static,
H: TypeInfo + 'static,
I: TypeInfo + 'static,
J: TypeInfo + 'static,
K: TypeInfo + 'static,
L: TypeInfo + 'static,
M: TypeInfo + 'static,
N: TypeInfo + 'static,
§impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O> TypeInfo for (A, B, C, D, E, F, G, H, I, J, K, L, M, N, O)where
A: TypeInfo + 'static,
B: TypeInfo + 'static,
C: TypeInfo + 'static,
D: TypeInfo + 'static,
E: TypeInfo + 'static,
F: TypeInfo + 'static,
G: TypeInfo + 'static,
H: TypeInfo + 'static,
I: TypeInfo + 'static,
J: TypeInfo + 'static,
K: TypeInfo + 'static,
L: TypeInfo + 'static,
M: TypeInfo + 'static,
N: TypeInfo + 'static,
O: TypeInfo + 'static,
impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O> TypeInfo for (A, B, C, D, E, F, G, H, I, J, K, L, M, N, O)where
A: TypeInfo + 'static,
B: TypeInfo + 'static,
C: TypeInfo + 'static,
D: TypeInfo + 'static,
E: TypeInfo + 'static,
F: TypeInfo + 'static,
G: TypeInfo + 'static,
H: TypeInfo + 'static,
I: TypeInfo + 'static,
J: TypeInfo + 'static,
K: TypeInfo + 'static,
L: TypeInfo + 'static,
M: TypeInfo + 'static,
N: TypeInfo + 'static,
O: TypeInfo + 'static,
§impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P> TypeInfo for (A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P)where
A: TypeInfo + 'static,
B: TypeInfo + 'static,
C: TypeInfo + 'static,
D: TypeInfo + 'static,
E: TypeInfo + 'static,
F: TypeInfo + 'static,
G: TypeInfo + 'static,
H: TypeInfo + 'static,
I: TypeInfo + 'static,
J: TypeInfo + 'static,
K: TypeInfo + 'static,
L: TypeInfo + 'static,
M: TypeInfo + 'static,
N: TypeInfo + 'static,
O: TypeInfo + 'static,
P: TypeInfo + 'static,
impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P> TypeInfo for (A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P)where
A: TypeInfo + 'static,
B: TypeInfo + 'static,
C: TypeInfo + 'static,
D: TypeInfo + 'static,
E: TypeInfo + 'static,
F: TypeInfo + 'static,
G: TypeInfo + 'static,
H: TypeInfo + 'static,
I: TypeInfo + 'static,
J: TypeInfo + 'static,
K: TypeInfo + 'static,
L: TypeInfo + 'static,
M: TypeInfo + 'static,
N: TypeInfo + 'static,
O: TypeInfo + 'static,
P: TypeInfo + 'static,
§impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q> TypeInfo for (A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q)where
A: TypeInfo + 'static,
B: TypeInfo + 'static,
C: TypeInfo + 'static,
D: TypeInfo + 'static,
E: TypeInfo + 'static,
F: TypeInfo + 'static,
G: TypeInfo + 'static,
H: TypeInfo + 'static,
I: TypeInfo + 'static,
J: TypeInfo + 'static,
K: TypeInfo + 'static,
L: TypeInfo + 'static,
M: TypeInfo + 'static,
N: TypeInfo + 'static,
O: TypeInfo + 'static,
P: TypeInfo + 'static,
Q: TypeInfo + 'static,
impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q> TypeInfo for (A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q)where
A: TypeInfo + 'static,
B: TypeInfo + 'static,
C: TypeInfo + 'static,
D: TypeInfo + 'static,
E: TypeInfo + 'static,
F: TypeInfo + 'static,
G: TypeInfo + 'static,
H: TypeInfo + 'static,
I: TypeInfo + 'static,
J: TypeInfo + 'static,
K: TypeInfo + 'static,
L: TypeInfo + 'static,
M: TypeInfo + 'static,
N: TypeInfo + 'static,
O: TypeInfo + 'static,
P: TypeInfo + 'static,
Q: TypeInfo + 'static,
§impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R> TypeInfo for (A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R)where
A: TypeInfo + 'static,
B: TypeInfo + 'static,
C: TypeInfo + 'static,
D: TypeInfo + 'static,
E: TypeInfo + 'static,
F: TypeInfo + 'static,
G: TypeInfo + 'static,
H: TypeInfo + 'static,
I: TypeInfo + 'static,
J: TypeInfo + 'static,
K: TypeInfo + 'static,
L: TypeInfo + 'static,
M: TypeInfo + 'static,
N: TypeInfo + 'static,
O: TypeInfo + 'static,
P: TypeInfo + 'static,
Q: TypeInfo + 'static,
R: TypeInfo + 'static,
impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R> TypeInfo for (A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R)where
A: TypeInfo + 'static,
B: TypeInfo + 'static,
C: TypeInfo + 'static,
D: TypeInfo + 'static,
E: TypeInfo + 'static,
F: TypeInfo + 'static,
G: TypeInfo + 'static,
H: TypeInfo + 'static,
I: TypeInfo + 'static,
J: TypeInfo + 'static,
K: TypeInfo + 'static,
L: TypeInfo + 'static,
M: TypeInfo + 'static,
N: TypeInfo + 'static,
O: TypeInfo + 'static,
P: TypeInfo + 'static,
Q: TypeInfo + 'static,
R: TypeInfo + 'static,
§impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S> TypeInfo for (A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S)where
A: TypeInfo + 'static,
B: TypeInfo + 'static,
C: TypeInfo + 'static,
D: TypeInfo + 'static,
E: TypeInfo + 'static,
F: TypeInfo + 'static,
G: TypeInfo + 'static,
H: TypeInfo + 'static,
I: TypeInfo + 'static,
J: TypeInfo + 'static,
K: TypeInfo + 'static,
L: TypeInfo + 'static,
M: TypeInfo + 'static,
N: TypeInfo + 'static,
O: TypeInfo + 'static,
P: TypeInfo + 'static,
Q: TypeInfo + 'static,
R: TypeInfo + 'static,
S: TypeInfo + 'static,
impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S> TypeInfo for (A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S)where
A: TypeInfo + 'static,
B: TypeInfo + 'static,
C: TypeInfo + 'static,
D: TypeInfo + 'static,
E: TypeInfo + 'static,
F: TypeInfo + 'static,
G: TypeInfo + 'static,
H: TypeInfo + 'static,
I: TypeInfo + 'static,
J: TypeInfo + 'static,
K: TypeInfo + 'static,
L: TypeInfo + 'static,
M: TypeInfo + 'static,
N: TypeInfo + 'static,
O: TypeInfo + 'static,
P: TypeInfo + 'static,
Q: TypeInfo + 'static,
R: TypeInfo + 'static,
S: TypeInfo + 'static,
§impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T> TypeInfo for (A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T)where
A: TypeInfo + 'static,
B: TypeInfo + 'static,
C: TypeInfo + 'static,
D: TypeInfo + 'static,
E: TypeInfo + 'static,
F: TypeInfo + 'static,
G: TypeInfo + 'static,
H: TypeInfo + 'static,
I: TypeInfo + 'static,
J: TypeInfo + 'static,
K: TypeInfo + 'static,
L: TypeInfo + 'static,
M: TypeInfo + 'static,
N: TypeInfo + 'static,
O: TypeInfo + 'static,
P: TypeInfo + 'static,
Q: TypeInfo + 'static,
R: TypeInfo + 'static,
S: TypeInfo + 'static,
T: TypeInfo + 'static,
impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T> TypeInfo for (A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T)where
A: TypeInfo + 'static,
B: TypeInfo + 'static,
C: TypeInfo + 'static,
D: TypeInfo + 'static,
E: TypeInfo + 'static,
F: TypeInfo + 'static,
G: TypeInfo + 'static,
H: TypeInfo + 'static,
I: TypeInfo + 'static,
J: TypeInfo + 'static,
K: TypeInfo + 'static,
L: TypeInfo + 'static,
M: TypeInfo + 'static,
N: TypeInfo + 'static,
O: TypeInfo + 'static,
P: TypeInfo + 'static,
Q: TypeInfo + 'static,
R: TypeInfo + 'static,
S: TypeInfo + 'static,
T: TypeInfo + 'static,
source§impl<BlockNumber> TypeInfo for ActiveProgram<BlockNumber>
impl<BlockNumber> TypeInfo for ActiveProgram<BlockNumber>
source§impl<RFM, SD, SUM> TypeInfo for ScheduledTask<RFM, SD, SUM>
impl<RFM, SD, SUM> TypeInfo for ScheduledTask<RFM, SD, SUM>
source§impl<T, E, const N: usize> TypeInfo for LimitedVec<T, E, N>
impl<T, E, const N: usize> TypeInfo for LimitedVec<T, E, N>
source§impl<const SIZE: u32> TypeInfo for PagesAmount<SIZE>
impl<const SIZE: u32> TypeInfo for PagesAmount<SIZE>
Implementors§
§impl TypeInfo for ArithmeticError
impl TypeInfo for ArithmeticError
type Identity = ArithmeticError
§impl TypeInfo for DigestItem
impl TypeInfo for DigestItem
type Identity = DigestItem
§impl TypeInfo for gclient::ext::sp_runtime::DispatchError
impl TypeInfo for gclient::ext::sp_runtime::DispatchError
type Identity = DispatchError
§impl TypeInfo for ExtrinsicInclusionMode
impl TypeInfo for ExtrinsicInclusionMode
type Identity = ExtrinsicInclusionMode
§impl TypeInfo for gclient::ext::sp_runtime::MultiSignature
impl TypeInfo for gclient::ext::sp_runtime::MultiSignature
type Identity = MultiSignature
§impl TypeInfo for MultiSigner
impl TypeInfo for MultiSigner
type Identity = MultiSigner
§impl TypeInfo for TokenError
impl TypeInfo for TokenError
type Identity = TokenError
§impl TypeInfo for TransactionalError
impl TypeInfo for TransactionalError
type Identity = TransactionalError
§impl TypeInfo for gclient::ext::sp_runtime::legacy::byte_sized_error::DispatchError
impl TypeInfo for gclient::ext::sp_runtime::legacy::byte_sized_error::DispatchError
type Identity = DispatchError
§impl TypeInfo for InvalidTransaction
impl TypeInfo for InvalidTransaction
type Identity = InvalidTransaction
§impl TypeInfo for TransactionSource
impl TypeInfo for TransactionSource
type Identity = TransactionSource
§impl TypeInfo for TransactionValidityError
impl TypeInfo for TransactionValidityError
§impl TypeInfo for UnknownTransaction
impl TypeInfo for UnknownTransaction
type Identity = UnknownTransaction
§impl TypeInfo for VrfSignature
impl TypeInfo for VrfSignature
type Identity = VrfSignature
§impl TypeInfo for OpaqueMetadata
impl TypeInfo for OpaqueMetadata
type Identity = OpaqueMetadata
§impl TypeInfo for OpaquePeerId
impl TypeInfo for OpaquePeerId
type Identity = OpaquePeerId
§impl TypeInfo for gclient::ext::sp_runtime::app_crypto::ecdsa::AppSignature
impl TypeInfo for gclient::ext::sp_runtime::app_crypto::ecdsa::AppSignature
§impl TypeInfo for gclient::ext::sp_runtime::app_crypto::ed25519::AppSignature
impl TypeInfo for gclient::ext::sp_runtime::app_crypto::ed25519::AppSignature
§impl TypeInfo for gclient::ext::sp_runtime::app_crypto::sr25519::AppSignature
impl TypeInfo for gclient::ext::sp_runtime::app_crypto::sr25519::AppSignature
§impl TypeInfo for gclient::ext::sp_runtime::legacy::byte_sized_error::ModuleError
impl TypeInfo for gclient::ext::sp_runtime::legacy::byte_sized_error::ModuleError
type Identity = ModuleError
§impl TypeInfo for OpaqueMultiaddr
impl TypeInfo for OpaqueMultiaddr
type Identity = OpaqueMultiaddr
§impl TypeInfo for OpaqueNetworkState
impl TypeInfo for OpaqueNetworkState
type Identity = OpaqueNetworkState
§impl TypeInfo for gclient::ext::sp_runtime::AccountId32
impl TypeInfo for gclient::ext::sp_runtime::AccountId32
type Identity = AccountId32
§impl TypeInfo for AnySignature
impl TypeInfo for AnySignature
type Identity = AnySignature
§impl TypeInfo for gclient::ext::sp_runtime::ModuleError
impl TypeInfo for gclient::ext::sp_runtime::ModuleError
type Identity = ModuleError
§impl TypeInfo for OpaqueExtrinsic
impl TypeInfo for OpaqueExtrinsic
type Identity = OpaqueExtrinsic
§impl TypeInfo for OpaqueValue
impl TypeInfo for OpaqueValue
type Identity = OpaqueValue
§impl TypeInfo for Perquintill
impl TypeInfo for Perquintill
type Identity = Perquintill
§impl TypeInfo for TestSignature
impl TypeInfo for TestSignature
type Identity = TestSignature
§impl TypeInfo for UintAuthorityId
impl TypeInfo for UintAuthorityId
type Identity = UintAuthorityId
§impl TypeInfo for BlakeTwo256
impl TypeInfo for BlakeTwo256
type Identity = BlakeTwo256
§impl TypeInfo for ValidTransaction
impl TypeInfo for ValidTransaction
type Identity = ValidTransaction
§impl<'a> TypeInfo for PiecewiseLinear<'a>where
'a: 'static,
impl<'a> TypeInfo for PiecewiseLinear<'a>where
'a: 'static,
type Identity = PiecewiseLinear<'a>
§impl<'a, T, S> TypeInfo for BoundedSlice<'a, T, S>
impl<'a, T, S> TypeInfo for BoundedSlice<'a, T, S>
type Identity = BoundedSlice<'a, T, S>
§impl<AccountId, AccountIndex> TypeInfo for gclient::ext::sp_runtime::MultiAddress<AccountId, AccountIndex>
impl<AccountId, AccountIndex> TypeInfo for gclient::ext::sp_runtime::MultiAddress<AccountId, AccountIndex>
type Identity = MultiAddress<AccountId, AccountIndex>
§impl<Address, Call, Signature, Extra> TypeInfo for UncheckedExtrinsic<Address, Call, Signature, Extra>where
Address: StaticTypeInfo,
Call: StaticTypeInfo,
Signature: StaticTypeInfo,
Extra: SignedExtension + StaticTypeInfo,
impl<Address, Call, Signature, Extra> TypeInfo for UncheckedExtrinsic<Address, Call, Signature, Extra>where
Address: StaticTypeInfo,
Call: StaticTypeInfo,
Signature: StaticTypeInfo,
Extra: SignedExtension + StaticTypeInfo,
Manual TypeInfo
implementation because of custom encoding. The data is a valid encoded
Vec<u8>
, but requires some logic to extract the signature and payload.
See UncheckedExtrinsic::encode
and UncheckedExtrinsic::decode
.