pub trait ResponseExt: Sized {
// Provided method
fn into_htmx_response(self) -> Response<Self> { ... }
}Expand description
An extension trait for responses.
Provided Methods§
Sourcefn into_htmx_response(self) -> Response<Self>
fn into_htmx_response(self) -> Response<Self>
Turn the insert into an HTMX Response.
Note: htmx_retarget can be None to indicate that the response should not be retargeted.
This is a convenience method.
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.