pub trait PageProps: PropValue {
// Provided method
fn rust_type() -> Result<RustType, PropsError> { ... }
}Expand description
Derive and trait for declared handler props.
A named struct or unit enum declared with #[derive(PageProps)].
The trait and derive share their public name in Rust’s separate namespaces.
Provided Methods§
Sourcefn rust_type() -> Result<RustType, PropsError>
fn rust_type() -> Result<RustType, PropsError>
Build the schema once at startup. Recursive Rust types return BIND-105.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".