Struct subxt_metadata::CustomMetadata
source · pub struct CustomMetadata<'a> { /* private fields */ }Expand description
Metadata of custom types with custom values, basically the same as frame_metadata::v15::CustomMetadata<PortableForm>>.
Implementations§
source§impl<'a> CustomMetadata<'a>
impl<'a> CustomMetadata<'a>
sourcepub fn get(&self, name: &str) -> Option<CustomValueMetadata<'a>>
pub fn get(&self, name: &str) -> Option<CustomValueMetadata<'a>>
Get a certain CustomValueMetadata by its name.
sourcepub fn iter(&self) -> impl Iterator<Item = CustomValueMetadata<'_>>
pub fn iter(&self) -> impl Iterator<Item = CustomValueMetadata<'_>>
Iterates over names (keys) and associated custom values
sourcepub fn types(&self) -> &PortableRegistry
pub fn types(&self) -> &PortableRegistry
Access the underlying type registry.
Trait Implementations§
source§impl<'a> Clone for CustomMetadata<'a>
impl<'a> Clone for CustomMetadata<'a>
source§fn clone(&self) -> CustomMetadata<'a>
fn clone(&self) -> CustomMetadata<'a>
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 moreAuto Trait Implementations§
impl<'a> Freeze for CustomMetadata<'a>
impl<'a> RefUnwindSafe for CustomMetadata<'a>
impl<'a> Send for CustomMetadata<'a>
impl<'a> Sync for CustomMetadata<'a>
impl<'a> Unpin for CustomMetadata<'a>
impl<'a> UnwindSafe for CustomMetadata<'a>
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