Struct subxt_metadata::MetadataHasher
source · pub struct MetadataHasher<'a> { /* private fields */ }Expand description
Obtain a hash representation of our metadata or some part of it.
This is obtained by calling crate::Metadata::hasher().
Implementations§
source§impl<'a> MetadataHasher<'a>
impl<'a> MetadataHasher<'a>
sourcepub fn only_these_pallets<S: AsRef<str>>(
&mut self,
specific_pallets: &'a [S]
) -> &mut Self
pub fn only_these_pallets<S: AsRef<str>>( &mut self, specific_pallets: &'a [S] ) -> &mut Self
Only hash the provided pallets instead of hashing every pallet.
sourcepub fn only_these_runtime_apis<S: AsRef<str>>(
&mut self,
specific_runtime_apis: &'a [S]
) -> &mut Self
pub fn only_these_runtime_apis<S: AsRef<str>>( &mut self, specific_runtime_apis: &'a [S] ) -> &mut Self
Only hash the provided runtime APIs instead of hashing every runtime API
sourcepub fn ignore_custom_values(&mut self) -> &mut Self
pub fn ignore_custom_values(&mut self) -> &mut Self
Do not hash the custom values
Auto Trait Implementations§
impl<'a> RefUnwindSafe for MetadataHasher<'a>
impl<'a> Send for MetadataHasher<'a>
impl<'a> Sync for MetadataHasher<'a>
impl<'a> Unpin for MetadataHasher<'a>
impl<'a> UnwindSafe for MetadataHasher<'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