pub struct HxReplaceUrl(pub String);Expand description
The HX-Replace-Url header.
Replaces the currelt URL in the location bar.
Will fail if the supplied Uri contains characters that are not visible ASCII (32-127).
See https://htmx.org/headers/hx-replace-url/ for more information.
Tuple Fields§
§0: StringTrait Implementations§
Source§impl Clone for HxReplaceUrl
impl Clone for HxReplaceUrl
Source§fn clone(&self) -> HxReplaceUrl
fn clone(&self) -> HxReplaceUrl
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 HxReplaceUrl
impl Debug for HxReplaceUrl
Source§impl<'a> From<&'a str> for HxReplaceUrl
impl<'a> From<&'a str> for HxReplaceUrl
Source§impl IntoResponseParts for HxReplaceUrl
impl IntoResponseParts for HxReplaceUrl
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 HxReplaceUrl
impl RefUnwindSafe for HxReplaceUrl
impl Send for HxReplaceUrl
impl Sync for HxReplaceUrl
impl Unpin for HxReplaceUrl
impl UnwindSafe for HxReplaceUrl
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