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