Trait InertiaTestRequest

Source
pub trait InertiaTestRequest {
    // Required method
    fn inertia(self) -> Self;
}

Required Methods§

Source

fn inertia(self) -> Self

Injects the Inertia header to the request, making the incoming response being a JSON instead of an HTML body.

This allows the response to be serialized to an AssertableInertia instance.

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.

Implementors§