Struct gekko::runtime::kusama::extrinsics::system::KillPrefix [−][src]
pub struct KillPrefix<A, B> where
A: Encode + Decode,
B: Encode + Decode, {
pub prefix: A,
pub _subkeys: B,
}
Expand description
Kill all storage items with a key that starts with the given prefix.
Documentation (provided by the runtime metadata)
Kill all storage items with a key that starts with the given prefix.
NOTE: We rely on the Root origin to provide us the number of subkeys under the prefix we are removing to accurately calculate the weight of this function.
O(P)
whereP
amount of keys with prefixprefix
P
storage deletions.- Base Weight: 0.834 * P µs
- Writes: Number of subkeys + 1
Type Disclaimer
This library makes no assumptions about parameter types and must be specified manually as generic types. Each field contains a type description which can serve as a hint on what type is being expected, as provided by the runtime meatadata. See the common
module for common types which can be used.
Fields
prefix: A
Type description: Key
_subkeys: B
Type description: u32
Trait Implementations
impl<A: PartialEq, B: PartialEq> PartialEq<KillPrefix<A, B>> for KillPrefix<A, B> where
A: Encode + Decode,
B: Encode + Decode,
impl<A: PartialEq, B: PartialEq> PartialEq<KillPrefix<A, B>> for KillPrefix<A, B> where
A: Encode + Decode,
B: Encode + Decode,
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
impl<A, B> StructuralPartialEq for KillPrefix<A, B> where
A: Encode + Decode,
B: Encode + Decode,
Auto Trait Implementations
impl<A, B> RefUnwindSafe for KillPrefix<A, B> where
A: RefUnwindSafe,
B: RefUnwindSafe,
impl<A, B> Send for KillPrefix<A, B> where
A: Send,
B: Send,
impl<A, B> Sync for KillPrefix<A, B> where
A: Sync,
B: Sync,
impl<A, B> Unpin for KillPrefix<A, B> where
A: Unpin,
B: Unpin,
impl<A, B> UnwindSafe for KillPrefix<A, B> where
A: UnwindSafe,
B: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
type Output = T
type Output = T
Should always be Self
The counterpart to unchecked_from
.