pub struct LocationOptions {
pub source: Option<String>,
pub event: Option<String>,
pub handler: Option<String>,
pub target: Option<String>,
pub swap: Option<SwapOption>,
pub values: Option<Value>,
pub headers: Option<Value>,
pub non_exhaustive: (),
}Available on crate feature
serde only.Expand description
More options for HX-Location header.
source- the source element of the requestevent- an event that “triggered” the requesthandler- a callback that will handle the response HTMLtarget- the target to swap the response intoswap- how the response will be swapped in relative to the targetvalues- values to submit with the requestheaders- headers to submit with the requestselect- allows you to select the content you want swapped from a response
Fields§
§source: Option<String>The source element of the request.
event: Option<String>An event that “triggered” the request.
handler: Option<String>A callback that will handle the response HTML.
target: Option<String>The target to swap the response into.
swap: Option<SwapOption>How the response will be swapped in relative to the target.
values: Option<Value>Values to submit with the request.
headers: Option<Value>Headers to submit with the request.
non_exhaustive: ()Trait Implementations§
Source§impl Clone for LocationOptions
impl Clone for LocationOptions
Source§fn clone(&self) -> LocationOptions
fn clone(&self) -> LocationOptions
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 LocationOptions
impl Debug for LocationOptions
Source§impl Default for LocationOptions
impl Default for LocationOptions
Source§fn default() -> LocationOptions
fn default() -> LocationOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for LocationOptions
impl RefUnwindSafe for LocationOptions
impl Send for LocationOptions
impl Sync for LocationOptions
impl Unpin for LocationOptions
impl UnwindSafe for LocationOptions
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