pub trait MintableType:
Sized
+ WriteXDR
+ for<'r> ReadXDR<'r> {
type Preimage;
}Expand description
Marker trait for types that have a pre-signing (preimage) representation.
Preimage is intentionally unbound — the WriteXDR + ReadXDR requirement
is deferred to the Mintable trait so that recursive contract_types can
implement MintableType without triggering trait-solver overflow.
Required Associated Types§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementations on Foreign Types§
Source§impl<T: MintableType> MintableType for Box<T>
Available on crate feature alloc only.
impl<T: MintableType> MintableType for Box<T>
Available on crate feature
alloc only.Source§impl<T: MintableType> MintableType for Option<T>
impl<T: MintableType> MintableType for Option<T>
Source§impl<T: MintableType> MintableType for Vec<T>
Available on crate feature alloc only.
impl<T: MintableType> MintableType for Vec<T>
Available on crate feature
alloc only.Source§impl<const MAX: usize> MintableType for String<MAX>
impl<const MAX: usize> MintableType for String<MAX>
type Preimage = StringInner<usize, VecStorageInner<[MaybeUninit<u8>; MAX]>>
Source§impl<const N: usize, T: MintableType> MintableType for [T; N]
impl<const N: usize, T: MintableType> MintableType for [T; N]
Implementors§
Source§impl MintableType for BlockHeight
impl MintableType for BlockHeight
type Preimage = BlockHeight
Source§impl MintableType for ContractAddress
impl MintableType for ContractAddress
type Preimage = ContractAddress
Source§impl MintableType for Ed25519PublicKey
impl MintableType for Ed25519PublicKey
type Preimage = Ed25519PublicKey
Source§impl MintableType for Ed25519Signature
impl MintableType for Ed25519Signature
type Preimage = Ed25519Signature
Source§impl MintableType for MlDsa65PublicKey
impl MintableType for MlDsa65PublicKey
type Preimage = MlDsa65PublicKey
Source§impl MintableType for MlDsa65Signature
impl MintableType for MlDsa65Signature
type Preimage = MlDsa65Signature
Source§impl MintableType for SHA256Hash
impl MintableType for SHA256Hash
type Preimage = SHA256Hash
Source§impl<T: MintableType + 'static, const MAX: u32> MintableType for VecM<T, MAX>
Available on crate feature alloc only.
impl<T: MintableType + 'static, const MAX: u32> MintableType for VecM<T, MAX>
Available on crate feature
alloc only.