pub enum Swap {
InnerHtml,
OuterHtml,
BeforeBegin,
AfterBegin,
BeforeEnd,
AfterEnd,
Delete,
None,
}
Expand description
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<'de> Deserialize<'de> for Swap
impl<'de> Deserialize<'de> for Swap
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 From<Swap> for HeaderValue
impl From<Swap> for HeaderValue
impl Copy for Swap
impl Eq for Swap
impl StructuralPartialEq for Swap
Auto Trait Implementations§
impl Freeze for Swap
impl RefUnwindSafe for Swap
impl Send for Swap
impl Sync for Swap
impl Unpin for Swap
impl UnwindSafe for Swap
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