pub trait ElevatedOperation: DeserializeOwned + Serialize {
// Required methods
fn id() -> &'static str;
fn run(&self);
// Provided methods
fn check() -> Result<(), String> { ... }
fn execute(&self) -> Result<(), String> { ... }
}Required Methods§
Provided 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.