pub struct PalletAssociatedTypeMetadataIR<T: Form = MetaForm> {
pub name: T::String,
pub ty: T::Type,
pub docs: Vec<T::String>,
}
Expand description
Metadata of a pallet’s associated type.
Fields§
§name: T::String
The name of the associated type.
ty: T::Type
The type of the associated type.
docs: Vec<T::String>
The documentation of the associated type.
Trait Implementations§
Source§impl<T: Clone + Form> Clone for PalletAssociatedTypeMetadataIR<T>
impl<T: Clone + Form> Clone for PalletAssociatedTypeMetadataIR<T>
Source§fn clone(&self) -> PalletAssociatedTypeMetadataIR<T>
fn clone(&self) -> PalletAssociatedTypeMetadataIR<T>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<T: Form> Encode for PalletAssociatedTypeMetadataIR<T>
impl<T: Form> Encode for PalletAssociatedTypeMetadataIR<T>
Source§fn size_hint(&self) -> usize
fn size_hint(&self) -> usize
If possible give a hint of expected size of the encoding. Read more
Source§fn encode_to<__CodecOutputEdqy: Output + ?Sized>(
&self,
__codec_dest_edqy: &mut __CodecOutputEdqy,
)
fn encode_to<__CodecOutputEdqy: Output + ?Sized>( &self, __codec_dest_edqy: &mut __CodecOutputEdqy, )
Convert self to a slice and append it to the destination.
Source§fn using_encoded<R, F>(&self, f: F) -> R
fn using_encoded<R, F>(&self, f: F) -> R
Convert self to a slice and then invoke the given closure with it.
Source§fn encoded_size(&self) -> usize
fn encoded_size(&self) -> usize
Calculates the encoded size. Read more
Source§impl From<PalletAssociatedTypeMetadataIR> for PalletAssociatedTypeMetadata
impl From<PalletAssociatedTypeMetadataIR> for PalletAssociatedTypeMetadata
Source§fn from(ir: PalletAssociatedTypeMetadataIR) -> Self
fn from(ir: PalletAssociatedTypeMetadataIR) -> Self
Converts to this type from the input type.
Source§impl IntoPortable for PalletAssociatedTypeMetadataIR
impl IntoPortable for PalletAssociatedTypeMetadataIR
Source§type Output = PalletAssociatedTypeMetadataIR<PortableForm>
type Output = PalletAssociatedTypeMetadataIR<PortableForm>
The portable version of
Self
.Source§fn into_portable(self, registry: &mut Registry) -> Self::Output
fn into_portable(self, registry: &mut Registry) -> Self::Output
Convert
self
to the portable form by using the registry for caching.Source§impl<T: PartialEq + Form> PartialEq for PalletAssociatedTypeMetadataIR<T>
impl<T: PartialEq + Form> PartialEq for PalletAssociatedTypeMetadataIR<T>
Source§fn eq(&self, other: &PalletAssociatedTypeMetadataIR<T>) -> bool
fn eq(&self, other: &PalletAssociatedTypeMetadataIR<T>) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl<T: Form> EncodeLike for PalletAssociatedTypeMetadataIR<T>
impl<T: Eq + Form> Eq for PalletAssociatedTypeMetadataIR<T>
impl<T: Form> StructuralPartialEq for PalletAssociatedTypeMetadataIR<T>
Auto Trait Implementations§
impl<T> Freeze for PalletAssociatedTypeMetadataIR<T>
impl<T> RefUnwindSafe for PalletAssociatedTypeMetadataIR<T>
impl<T> Send for PalletAssociatedTypeMetadataIR<T>
impl<T> Sync for PalletAssociatedTypeMetadataIR<T>
impl<T> Unpin for PalletAssociatedTypeMetadataIR<T>
impl<T> UnwindSafe for PalletAssociatedTypeMetadataIR<T>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more