pub struct Document { /* private fields */ }

Implementations

return the document’s ID

Decode body of document

Update internal buffer with data, you need save document to database to make this change permanent

Returns a document’s current sequence in the local database. This number increases every time the document is saved, and a more recently saved document will have a greater sequence number than one saved earlier, so sequences may be used as an abstract ‘clock’ to tell relative modification times

Returns a document’s revision ID, which is a short opaque string that’s guaranteed to be unique to every change made to the document.

Just check Document::flags to see if document exists

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.