ResponseExt

Trait ResponseExt 

Source
pub trait ResponseExt: Sized {
    // Provided method
    fn into_htmx_response(self) -> Response<Self> { ... }
}
Expand description

An extension trait for responses.

Provided Methods§

Source

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.

Implementors§

Source§

impl<T> ResponseExt for T
where T: Sized,