pub struct CreateEntity<'a> {
pub id: Id,
pub values: Vec<PropertyValue<'a>>,
pub context: Option<Context>,
}Expand description
Creates a new entity (spec Section 3.2).
If the entity does not exist, creates it. If it already exists, this acts as an update: values are applied as set_properties (LWW).
Fields§
§id: IdThe entity’s unique identifier.
values: Vec<PropertyValue<'a>>Initial values for the entity.
context: Option<Context>Optional context for grouping changes (spec Section 4.5).
Trait Implementations§
Source§impl<'a> Clone for CreateEntity<'a>
impl<'a> Clone for CreateEntity<'a>
Source§fn clone(&self) -> CreateEntity<'a>
fn clone(&self) -> CreateEntity<'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 CreateEntity<'a>
impl<'a> Debug for CreateEntity<'a>
Source§impl<'a> PartialEq for CreateEntity<'a>
impl<'a> PartialEq for CreateEntity<'a>
impl<'a> StructuralPartialEq for CreateEntity<'a>
Auto Trait Implementations§
impl<'a> Freeze for CreateEntity<'a>
impl<'a> RefUnwindSafe for CreateEntity<'a>
impl<'a> Send for CreateEntity<'a>
impl<'a> Sync for CreateEntity<'a>
impl<'a> Unpin for CreateEntity<'a>
impl<'a> UnwindSafe for CreateEntity<'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