pub trait ViewData: Serialize + DeserializeOwned {
const KIND: &'static str;
const V: u32;
// Required method
fn fallback(&self) -> String;
}Expand description
A typed view: the struct is the data schema of kind ViewData::KIND.
Required Associated Constants§
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".