pub struct UpdateEntity<'a> {
pub id: Id,
pub set_properties: Vec<PropertyValue<'a>>,
pub unset_values: Vec<UnsetValue>,
pub context: Option<Context>,
}Expand description
Updates an existing entity (spec Section 3.2).
Application order within op:
- unset_values
- set_properties
Fields§
§id: IdThe entity to update.
set_properties: Vec<PropertyValue<'a>>Replace value for these properties (LWW).
unset_values: Vec<UnsetValue>Clear values for these properties (optionally specific language for TEXT).
context: Option<Context>Optional context for grouping changes (spec Section 4.5).
Implementations§
Trait Implementations§
Source§impl<'a> Clone for UpdateEntity<'a>
impl<'a> Clone for UpdateEntity<'a>
Source§fn clone(&self) -> UpdateEntity<'a>
fn clone(&self) -> UpdateEntity<'a>
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<'a> Debug for UpdateEntity<'a>
impl<'a> Debug for UpdateEntity<'a>
Source§impl<'a> Default for UpdateEntity<'a>
impl<'a> Default for UpdateEntity<'a>
Source§fn default() -> UpdateEntity<'a>
fn default() -> UpdateEntity<'a>
Returns the “default value” for a type. Read more
Source§impl<'a> PartialEq for UpdateEntity<'a>
impl<'a> PartialEq for UpdateEntity<'a>
impl<'a> StructuralPartialEq for UpdateEntity<'a>
Auto Trait Implementations§
impl<'a> Freeze for UpdateEntity<'a>
impl<'a> RefUnwindSafe for UpdateEntity<'a>
impl<'a> Send for UpdateEntity<'a>
impl<'a> Sync for UpdateEntity<'a>
impl<'a> Unpin for UpdateEntity<'a>
impl<'a> UnwindSafe for UpdateEntity<'a>
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