Module dittolive_ditto::store::collection::document
source · [−]Expand description
Documents are containers for the data you put in a
[Collection
](super::collection::Collection).
Documents exist in two ways:
DittoDocument
is a static view of the content of a document.DittoMutDocument
which allows to update the content of a document.
Traits
DittoDocument
s can be obtained via calls to the various
exec
methods
or via the various
observe_local
methods, exposed via the objects
returned from calls to Collection::find_by_id
,
Collection::find
, and
Collection::find_all
.DittoMutDocument
s can be obtained within update
calls
(PendingIdSpecificOperation::update
or
PendingCursorSpecificOperation::update
).