Skip to main content

PageProps

Trait PageProps 

Source
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§

Source

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".

Implementors§