pub struct TriggerPayload { /* private fields */ }Expand description
A strongly typed payload for HX-Trigger* headers.
Construct instances through helper constructors, then pass them to
Htmx::trigger_event
to make sure payloads are always valid JSON.
Implementations§
Source§impl TriggerPayload
impl TriggerPayload
Trait Implementations§
Source§impl Clone for TriggerPayload
impl Clone for TriggerPayload
Source§fn clone(&self) -> TriggerPayload
fn clone(&self) -> TriggerPayload
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 moreAuto Trait Implementations§
impl Freeze for TriggerPayload
impl RefUnwindSafe for TriggerPayload
impl Send for TriggerPayload
impl Sync for TriggerPayload
impl Unpin for TriggerPayload
impl UnwindSafe for TriggerPayload
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