pub struct UpdatePatch { /* private fields */ }Expand description
UpdatePatch
UpdatePatch
UpdatePatch is the ordered structural mutation program applied to one
persisted row.
This is the phase-1 0.64 patch container: it updates slot values
structurally and then re-encodes the full row.
Implementations§
Source§impl UpdatePatch
impl UpdatePatch
Sourcepub fn set_field(
self,
model: &'static EntityModel,
field_name: &str,
value: Value,
) -> Result<Self, InternalError>
pub fn set_field( self, model: &'static EntityModel, field_name: &str, value: Value, ) -> Result<Self, InternalError>
Resolve one field name and append its structural update.
Trait Implementations§
Source§impl Clone for UpdatePatch
impl Clone for UpdatePatch
Source§fn clone(&self) -> UpdatePatch
fn clone(&self) -> UpdatePatch
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 UpdatePatch
impl Debug for UpdatePatch
Source§impl Default for UpdatePatch
impl Default for UpdatePatch
Source§fn default() -> UpdatePatch
fn default() -> UpdatePatch
Returns the “default value” for a type. Read more
Source§impl PartialEq for UpdatePatch
impl PartialEq for UpdatePatch
impl Eq for UpdatePatch
impl StructuralPartialEq for UpdatePatch
Auto Trait Implementations§
impl Freeze for UpdatePatch
impl RefUnwindSafe for UpdatePatch
impl Send for UpdatePatch
impl Sync for UpdatePatch
impl Unpin for UpdatePatch
impl UnsafeUnpin for UpdatePatch
impl UnwindSafe for UpdatePatch
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