Skip to main content

InertiaProps

Derive Macro InertiaProps 

Source
#[derive(InertiaProps)]
{
    // Attributes available to this derive:
    #[inertia]
}
Expand description

Derive macro for generating Serialize implementation for Inertia props

§Example

#[derive(InertiaProps)]
struct HomeProps {
    title: String,
    user: User,
}