pub enum PatchAction {
ReplaceWith(ReplacementNode),
ChangeTagName(String),
RemoveAttribute(String),
SetAttribute(String, String),
SetText(String),
ClearChildren,
AppendChildren(Vec<ReplacementNode>),
RemoveChild {
at: usize,
},
InsertChild {
before: usize,
child: ReplacementNode,
},
InsertChildAfter {
after: usize,
child: ReplacementNode,
},
}Variants§
ReplaceWith(ReplacementNode)
ChangeTagName(String)
RemoveAttribute(String)
SetAttribute(String, String)
SetText(String)
ClearChildren
AppendChildren(Vec<ReplacementNode>)
RemoveChild
InsertChild
InsertChildAfter
Trait Implementations§
Source§impl Clone for PatchAction
impl Clone for PatchAction
Source§fn clone(&self) -> PatchAction
fn clone(&self) -> PatchAction
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 PatchAction
impl Debug for PatchAction
Source§impl<'de> Deserialize<'de> for PatchAction
impl<'de> Deserialize<'de> for PatchAction
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 PatchAction
impl PartialEq for PatchAction
Source§impl Serialize for PatchAction
impl Serialize for PatchAction
impl Eq for PatchAction
impl StructuralPartialEq for PatchAction
Auto Trait Implementations§
impl Freeze for PatchAction
impl RefUnwindSafe for PatchAction
impl Send for PatchAction
impl Sync for PatchAction
impl Unpin for PatchAction
impl UnwindSafe for PatchAction
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.