pub trait IntoInertiaPropResult {
// Required method
fn into_inertia_value(self) -> Result<Value, InertiaError>;
}
Required Methods§
Sourcefn into_inertia_value(self) -> Result<Value, InertiaError>
fn into_inertia_value(self) -> Result<Value, InertiaError>
Converts a serializeable object into a serde_json::Value
. If it fails,
automatically maps the error to InertiaError
.