pub struct HxRedirect(pub String);Expand description
The HX-Redirect header.
Can be used to do a client-side redirect to a new location.
Will fail if the supplied Uri contains characters that are not visible ASCII (32-127).
Tuple Fields§
§0: StringTrait Implementations§
Source§impl Clone for HxRedirect
impl Clone for HxRedirect
Source§fn clone(&self) -> HxRedirect
fn clone(&self) -> HxRedirect
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 HxRedirect
impl Debug for HxRedirect
Source§impl<'a> From<&'a str> for HxRedirect
impl<'a> From<&'a str> for HxRedirect
Source§impl IntoResponseParts for HxRedirect
impl IntoResponseParts for HxRedirect
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 HxRedirect
impl RefUnwindSafe for HxRedirect
impl Send for HxRedirect
impl Sync for HxRedirect
impl Unpin for HxRedirect
impl UnwindSafe for HxRedirect
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