pub enum RuntimePatch {
ReplaceView {
node_id: u64,
new_view: SerializedView,
},
UpdateState {
node_id: u64,
field: String,
value: Value,
},
Batch(Vec<RuntimePatch>),
}Expand description
Runtime patch types
Variants§
ReplaceView
Replace a view at the specified node ID
UpdateState
Update state at the specified node ID
Fields
Batch(Vec<RuntimePatch>)
Batch multiple patches together
Trait Implementations§
Source§impl Clone for RuntimePatch
impl Clone for RuntimePatch
Source§fn clone(&self) -> RuntimePatch
fn clone(&self) -> RuntimePatch
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 RuntimePatch
impl Debug for RuntimePatch
Source§impl<'de> Deserialize<'de> for RuntimePatch
impl<'de> Deserialize<'de> for RuntimePatch
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 RuntimePatch
impl RefUnwindSafe for RuntimePatch
impl Send for RuntimePatch
impl Sync for RuntimePatch
impl Unpin for RuntimePatch
impl UnsafeUnpin for RuntimePatch
impl UnwindSafe for RuntimePatch
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