pub struct StorageMetadata { /* private fields */ }Expand description
Metadata for the storage entries in a pallet.
Implementations§
Source§impl StorageMetadata
impl StorageMetadata
Sourcepub fn entries(&self) -> &[StorageEntryMetadata]
pub fn entries(&self) -> &[StorageEntryMetadata]
An iterator over the storage entries.
Sourcepub fn entry_by_name(&self, name: &str) -> Option<&StorageEntryMetadata>
pub fn entry_by_name(&self, name: &str) -> Option<&StorageEntryMetadata>
Return a specific storage entry given its name.
Trait Implementations§
Source§impl Clone for StorageMetadata
impl Clone for StorageMetadata
Source§fn clone(&self) -> StorageMetadata
fn clone(&self) -> StorageMetadata
Returns a duplicate 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 Freeze for StorageMetadata
impl RefUnwindSafe for StorageMetadata
impl Send for StorageMetadata
impl Sync for StorageMetadata
impl Unpin for StorageMetadata
impl UnwindSafe for StorageMetadata
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