pub struct HxReswap(pub SwapOption);Expand description
The HX-Reswap header.
Allows you to specidy how the response will be swapped.
This responder will never fail.
Tuple Fields§
§0: SwapOptionTrait Implementations§
Source§impl From<SwapOption> for HxReswap
impl From<SwapOption> for HxReswap
Source§fn from(value: SwapOption) -> Self
fn from(value: SwapOption) -> Self
Converts to this type from the input type.
Source§impl IntoResponseParts for HxReswap
impl IntoResponseParts for HxReswap
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 HxReswap
Auto Trait Implementations§
impl Freeze for HxReswap
impl RefUnwindSafe for HxReswap
impl Send for HxReswap
impl Sync for HxReswap
impl Unpin for HxReswap
impl UnwindSafe for HxReswap
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