Crate serde_automerge
source ·Expand description
serde-automerge
(De)serialize serde
objects from or into automerge
transactions.
Usage
Add this to your Cargo.toml:
[dependencies]
serde-automerge = "0.1.0"
Re-exports
pub use de::Deserializer;
pub use ser::Serializer;
Modules
- Sync Protocol
Macros
Structs
- An actor id is a sequence of bytes. By default we use a uuid which can be nicely stack allocated.
- An automerge document that automatically manages transactions.
- A wrapper type which implements
serde::Serialize
for aReadDoc
. - An automerge document which does not manage transactions for you.
- The sha256 hash of a change.
- An identifier of a position in a Sequence (either Self::List or Self::Text).
- A change represents a group of operations performed by an actor.
- A component of a path to an object
- An iterator over the “parents” of an object
- A change to the current state of the document
- A record of changes made to a document
- Options to pass to
Automerge::save_with_options()
andcrate::AutoCommit::save_with_options()
Enums
- An identifier for an object in a document
- The type of an object
- What to do when loading a document partially succeeds
- A property of an object
- A value which is not a composite value
- Whether to convert
ScalarValue::Str
s in the loaded document toObjType::Text
- The type of values in an automerge document
Constants
- The object ID for the root map of a document
Traits
- Methods for reading values from an automerge document