pub struct AjaxContext {
pub source: Option<String>,
pub event: Option<String>,
pub handler: Option<String>,
pub target: Option<String>,
pub swap: Option<String>,
pub values: Option<HashMap<String, String>>,
pub headers: Option<HashMap<String, String>>,
pub select: Option<String>,
}
Expand description
ajax context for use with HxLocation
.
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<String>
how the response will be swapped in relative to the target
values: Option<HashMap<String, String>>
values to submit with the request
headers: Option<HashMap<String, String>>
headers to submit with the request
select: Option<String>
allows you to select the content you want swapped from a response
Trait Implementations§
Source§impl Clone for AjaxContext
impl Clone for AjaxContext
Source§fn clone(&self) -> AjaxContext
fn clone(&self) -> AjaxContext
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 AjaxContext
impl Debug for AjaxContext
Source§impl Default for AjaxContext
impl Default for AjaxContext
Source§fn default() -> AjaxContext
fn default() -> AjaxContext
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AjaxContext
impl<'de> Deserialize<'de> for AjaxContext
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 PartialEq for AjaxContext
impl PartialEq for AjaxContext
Source§impl Serialize for AjaxContext
impl Serialize for AjaxContext
impl Eq for AjaxContext
impl StructuralPartialEq for AjaxContext
Auto Trait Implementations§
impl Freeze for AjaxContext
impl RefUnwindSafe for AjaxContext
impl Send for AjaxContext
impl Sync for AjaxContext
impl Unpin for AjaxContext
impl UnwindSafe for AjaxContext
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