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:
DittoDocumentis a static view of the content of a document.DittoMutDocumentwhich allows to update the content of a document.
Traits
DittoDocuments 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.DittoMutDocuments can be obtained within update calls
(PendingIdSpecificOperation::update or
PendingCursorSpecificOperation::update).