pub trait OnGovernedMappingChange<MaxKeyLength, MaxValueLength>{
// Required method
fn on_governed_mapping_change(
key: BoundedString<MaxKeyLength>,
new_value: Option<BoundedVec<u8, MaxValueLength>>,
old_value: Option<BoundedVec<u8, MaxValueLength>>,
);
}
Expand description
Handler trait for runtime components which need to react to changes in the Governed Map.
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.