pub enum DesignPatchOperation {
InsertNode {
parent_id: Option<String>,
index: Option<usize>,
node: RoderDesignNode,
},
UpdateNode {
node_id: String,
patch: Value,
},
DeleteNode {
node_id: String,
recursive: bool,
},
ReorderNode {
node_id: String,
index: usize,
},
SetVariables {
variables: BTreeMap<String, Value>,
replace: bool,
},
}Variants§
Trait Implementations§
Source§impl Clone for DesignPatchOperation
impl Clone for DesignPatchOperation
Source§fn clone(&self) -> DesignPatchOperation
fn clone(&self) -> DesignPatchOperation
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 DesignPatchOperation
impl Debug for DesignPatchOperation
Source§impl<'de> Deserialize<'de> for DesignPatchOperation
impl<'de> Deserialize<'de> for DesignPatchOperation
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
Auto Trait Implementations§
impl Freeze for DesignPatchOperation
impl RefUnwindSafe for DesignPatchOperation
impl Send for DesignPatchOperation
impl Sync for DesignPatchOperation
impl Unpin for DesignPatchOperation
impl UnsafeUnpin for DesignPatchOperation
impl UnwindSafe for DesignPatchOperation
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