pub struct VaryHxTrigger;Expand description
The Vary: HX-Trigger header.
You may want to add this header to the response if your handler responds
differently based on the HX-Trigger 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 VaryHxTrigger
impl Clone for VaryHxTrigger
Source§fn clone(&self) -> VaryHxTrigger
fn clone(&self) -> VaryHxTrigger
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 VaryHxTrigger
impl Debug for VaryHxTrigger
Source§impl IntoResponseParts for VaryHxTrigger
impl IntoResponseParts for VaryHxTrigger
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 VaryHxTrigger
impl RefUnwindSafe for VaryHxTrigger
impl Send for VaryHxTrigger
impl Sync for VaryHxTrigger
impl Unpin for VaryHxTrigger
impl UnwindSafe for VaryHxTrigger
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