pub trait InertiaService {
// Required method
fn inertia_route<T>(self, path: &str, component: &'static str) -> Self
where T: 'static;
}
Expand description
InertiaService trait define a method to be implemented to Inertia struct that allows to generate simple routes directly, without needing to create a handler function.
Required Methods§
Sourcefn inertia_route<T>(self, path: &str, component: &'static str) -> Selfwhere
T: 'static,
fn inertia_route<T>(self, path: &str, component: &'static str) -> Selfwhere
T: 'static,
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.