pub enum Change {
Show 19 variants
Collection(CollectionWrite),
Put(DocumentWrite),
AppendPrune(DocumentAppendPrune),
Delete(DocumentDelete),
DeleteMany(DocumentDeleteMany),
Fork(Fork),
Discard(BranchDiscard),
Merge(BranchMerge),
EdgePut(Edge),
EdgeDelete(EdgeDelete),
IndexDeclare(IndexDeclaration),
VectorDeclare(VectorDeclaration),
VectorPut(VectorWrite),
VectorPutMany(VectorImport),
VectorDelete(VectorDelete),
PutMany(DocumentImport),
EdgePutMany(EdgeImport),
RelationPut(Relation),
RelationDelete(RelationDelete),
}Expand description
Collection shapes, documents, edges and vectors share the branch commit boundary.
Deleting a document also removes, in the same version, every edge that leaves or arrives at it and every vector stored for it.
Variants§
Collection(CollectionWrite)
Put(DocumentWrite)
AppendPrune(DocumentAppendPrune)
Delete(DocumentDelete)
DeleteMany(DocumentDeleteMany)
Fork(Fork)
Discard(BranchDiscard)
Merge(BranchMerge)
The branch from, at the version its review read, merged into
the mutation’s branch (serve/storage/merges.rs).
EdgePut(Edge)
EdgeDelete(EdgeDelete)
IndexDeclare(IndexDeclaration)
VectorDeclare(VectorDeclaration)
VectorPut(VectorWrite)
VectorPutMany(VectorImport)
VectorDelete(VectorDelete)
PutMany(DocumentImport)
EdgePutMany(EdgeImport)
Every edge checked as edge.put checks it, and each relation’s
cardinality across the batch too; all or none, in one commit.
RelationPut(Relation)
RelationDelete(RelationDelete)
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Change
impl<'de> Deserialize<'de> for Change
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 Change
impl RefUnwindSafe for Change
impl Send for Change
impl Sync for Change
impl Unpin for Change
impl UnsafeUnpin for Change
impl UnwindSafe for Change
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoMaybeUndefined<T> for T
impl<T> IntoMaybeUndefined<T> for T
Source§fn into_maybe_undefined(self) -> MaybeUndefined<T>
fn into_maybe_undefined(self) -> MaybeUndefined<T>
Converts this value into a three-state builder argument.
Source§impl<T> IntoOption<T> for T
impl<T> IntoOption<T> for T
Source§fn into_option(self) -> Option<T>
fn into_option(self) -> Option<T>
Converts this value into an optional builder argument.