Crate serde_automerge

Source
Expand description

§serde-automerge

Actions Status Latest version Documentation Lines of code MIT Contributor Covenant

Banner

(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§

de
error
hydrate
iter
marks
op_tree
patches
ser
sync
Sync Protocol
transaction

Macros§

hydrate_list
hydrate_map
hydrate_text

Structs§

ActorId
An actor id is a sequence of bytes. By default we use a uuid which can be nicely stack allocated.
AutoCommit
An automerge document that automatically manages transactions.
AutoSerde
A wrapper type which implements serde::Serialize for a ReadDoc.
Automerge
An automerge document which does not manage transactions for you.
Change
ChangeHash
The sha256 hash of a change.
Cursor
An identifier of a position in a Sequence (either Self::List or Self::Text).
ExpandedChange
A change represents a group of operations performed by an actor.
InvalidActorId
InvalidChangeHashSlice
LoadOptions
Parent
A component of a path to an object
Parents
An iterator over the “parents” of an object
Patch
A change to the current state of the document
PatchLog
A record of changes made to a document
SaveOptions
Options to pass to Automerge::save_with_options() and crate::AutoCommit::save_with_options()

Enums§

AutomergeError
AutomergeSerdeError
BlockOrText
LoadChangeError
ObjId
An identifier for an object in a document
ObjIdFromBytesError
ObjType
The type of an object
OnPartialLoad
What to do when loading a document partially succeeds
OpType
ParseChangeHashError
PatchAction
Prop
A property of an object
ScalarValue
A value which is not a composite value
StringMigration
Whether to convert ScalarValue::Strs in the loaded document to ObjType::Text
Value
The type of values in an automerge document
VerificationMode

Constants§

ROOT
The object ID for the root map of a document

Traits§

AutomergeExtension
AutomergeGetExtension
AutomergeSetExtension
ReadDoc
Methods for reading values from an automerge document

Type Aliases§

SequenceTree