pub enum PatchIR {
Insert {
parent_id: String,
node: VirtualNodeIR,
index: usize,
},
Remove {
node_id: String,
},
Update {
node_id: String,
attributes: Properties,
text_content: Option<String>,
},
Move {
node_id: String,
new_parent_id: String,
new_index: usize,
},
UpdateAttribute {
node_id: String,
attribute_name: String,
new_value: Option<Value>,
},
}
Variants§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for PatchIR
impl<'de> Deserialize<'de> for PatchIR
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
impl StructuralPartialEq for PatchIR
Auto Trait Implementations§
impl Freeze for PatchIR
impl RefUnwindSafe for PatchIR
impl Send for PatchIR
impl Sync for PatchIR
impl Unpin for PatchIR
impl UnwindSafe for PatchIR
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