Skip to main content

SafeModelExtension

Trait SafeModelExtension 

Source
pub trait SafeModelExtension: ModelExtension {
    type Value: Serialize + DeserializeOwned;

    // Required method
    fn name() -> &'static str;
}

Required Associated Types§

Required Methods§

Source

fn name() -> &'static str

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.

Implementors§