Crate inertia_rust

Source

Modules§

Structs§

  • The javascript component name.
  • Inertia struct must be a singleton and initialized at the application bootstrap. It is supposed to last during the whole application runtime.
  • A configuration struct for initializing Inertia. You can directly fill the struct or use the builder fluent syntax by calling InertiaConfig::builder(), and finally InertiaConfig::build().
  • Response containing a valid Inertia Payload that will be used by the Inertia client to render the components.
  • Inertia Full Page response to be rendered inside the root template on the first request or on a full visit request.
  • InertiaTemporarySession struct contains data that InertiaMiddleware will try to extract from the request and merge with shared props.
  • View Data is a struct containing props to be used by the root template.

Enums§

Traits§

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

Type Aliases§