pub struct HxRefresh(pub bool);Expand description
The HX-Refreshheader.
If set to true the client-side will do a full refresh of the page.
This responder will never fail.
Tuple Fields§
§0: boolTrait Implementations§
Source§impl IntoResponseParts for HxRefresh
impl IntoResponseParts for HxRefresh
Source§type Error = Infallible
type Error = Infallible
The type returned in the event of an error. Read more
Source§fn into_response_parts(
self,
res: ResponseParts,
) -> Result<ResponseParts, Self::Error>
fn into_response_parts( self, res: ResponseParts, ) -> Result<ResponseParts, Self::Error>
Set parts of the response
impl Copy for HxRefresh
Auto Trait Implementations§
impl Freeze for HxRefresh
impl RefUnwindSafe for HxRefresh
impl Send for HxRefresh
impl Sync for HxRefresh
impl Unpin for HxRefresh
impl UnwindSafe for HxRefresh
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more