pub enum SwapOption {
InnerHtml,
OuterHtml,
BeforeBegin,
AfterBegin,
BeforeEnd,
AfterEnd,
Delete,
None,
}Expand description
Values of the hx-swap attribute.
Variants§
InnerHtml
Replace the inner html of the target element.
OuterHtml
Replace the entire target element with the response.
BeforeBegin
Insert the response before the target element.
AfterBegin
Insert the response before the first child of the target element.
BeforeEnd
Insert the response after the last child of the target element
AfterEnd
Insert the response after the target element
Delete
Deletes the target element regardless of the response
None
Does not append content from response (out of band items will still be processed).
Trait Implementations§
Source§impl Clone for SwapOption
impl Clone for SwapOption
Source§fn clone(&self) -> SwapOption
fn clone(&self) -> SwapOption
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 SwapOption
impl Debug for SwapOption
Source§impl From<SwapOption> for HeaderValue
impl From<SwapOption> for HeaderValue
Source§fn from(value: SwapOption) -> Self
fn from(value: SwapOption) -> Self
Converts to this type from the input type.
Source§impl From<SwapOption> for HxReswap
impl From<SwapOption> for HxReswap
Source§fn from(value: SwapOption) -> Self
fn from(value: SwapOption) -> Self
Converts to this type from the input type.
Source§impl Serialize for SwapOption
impl Serialize for SwapOption
impl Copy for SwapOption
Auto Trait Implementations§
impl Freeze for SwapOption
impl RefUnwindSafe for SwapOption
impl Send for SwapOption
impl Sync for SwapOption
impl Unpin for SwapOption
impl UnwindSafe for SwapOption
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