pub struct HxLocation {
pub path: Uri,
pub context: Option<AjaxContext>,
}
Expand description
allows you to do a client-side redirect that does not do a full page reload
Fields§
§path: Uri
url to load the response from.
context: Option<AjaxContext>
other data, which mirrors the ajax api context.
Trait Implementations§
Source§impl Clone for HxLocation
impl Clone for HxLocation
Source§fn clone(&self) -> HxLocation
fn clone(&self) -> HxLocation
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 HxLocation
impl Debug for HxLocation
Source§impl<'de> Deserialize<'de> for HxLocation
impl<'de> Deserialize<'de> for HxLocation
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Header for HxLocation
impl Header for HxLocation
Source§fn encode<E: Extend<HeaderValue>>(&self, values: &mut E)
fn encode<E: Extend<HeaderValue>>(&self, values: &mut E)
NOTE: Panics if the value cannot be converted to a header value.
Source§fn name() -> &'static HeaderName
fn name() -> &'static HeaderName
The name of this header.
Source§impl PartialEq for HxLocation
impl PartialEq for HxLocation
Source§impl Serialize for HxLocation
impl Serialize for HxLocation
impl Eq for HxLocation
impl StructuralPartialEq for HxLocation
Auto Trait Implementations§
impl !Freeze for HxLocation
impl RefUnwindSafe for HxLocation
impl Send for HxLocation
impl Sync for HxLocation
impl Unpin for HxLocation
impl UnwindSafe for HxLocation
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