pub enum MetadataItem<'a, 'metadata> {
Contract {
state_type_name: &'metadata str,
state_type_details: IoTypeDetails,
slot_type_details: IoTypeDetails,
tmp_type_details: IoTypeDetails,
num_methods: u8,
decoder: MethodsMetadataDecoder<'a, 'metadata>,
},
Trait {
trait_name: &'metadata str,
num_methods: u8,
decoder: MethodsMetadataDecoder<'a, 'metadata>,
},
}
Variants§
Contract
Fields
§
state_type_details: IoTypeDetails
§
slot_type_details: IoTypeDetails
§
tmp_type_details: IoTypeDetails
§
decoder: MethodsMetadataDecoder<'a, 'metadata>
Trait
Implementations§
Source§impl<'a, 'metadata> MetadataItem<'a, 'metadata>
impl<'a, 'metadata> MetadataItem<'a, 'metadata>
pub fn num_methods(&self) -> u8
pub fn into_decoder(self) -> MethodsMetadataDecoder<'a, 'metadata>
Trait Implementations§
Auto Trait Implementations§
impl<'a, 'metadata> Freeze for MetadataItem<'a, 'metadata>
impl<'a, 'metadata> RefUnwindSafe for MetadataItem<'a, 'metadata>
impl<'a, 'metadata> Send for MetadataItem<'a, 'metadata>
impl<'a, 'metadata> Sync for MetadataItem<'a, 'metadata>
impl<'a, 'metadata> Unpin for MetadataItem<'a, 'metadata>
impl<'a, 'metadata> !UnwindSafe for MetadataItem<'a, 'metadata>
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