pub trait InertiaService {
// Required method
fn inertia_route(self, path: &str, component: &'static str) -> Self;
}
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(self, path: &str, component: &'static str) -> Self
fn inertia_route(self, path: &str, component: &'static str) -> Self
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.