pub struct VaryHxTarget;Expand description
The Vary: HX-Target header.
You may want to add this header to the response if your handler responds
differently based on the HX-Target request header.
You probably need this only for GET requests, as other HTTP methods are
not cached by default.
See https://htmx.org/docs/#caching for more information.
Trait Implementations§
Source§impl Clone for VaryHxTarget
impl Clone for VaryHxTarget
Source§fn clone(&self) -> VaryHxTarget
fn clone(&self) -> VaryHxTarget
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for VaryHxTarget
impl Debug for VaryHxTarget
Source§impl IntoResponseParts for VaryHxTarget
impl IntoResponseParts for VaryHxTarget
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
Auto Trait Implementations§
impl Freeze for VaryHxTarget
impl RefUnwindSafe for VaryHxTarget
impl Send for VaryHxTarget
impl Sync for VaryHxTarget
impl Unpin for VaryHxTarget
impl UnwindSafe for VaryHxTarget
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