pub struct Options {
pub client_id: ClientID,
pub guid: Uuid,
pub collection_id: Option<String>,
pub offset_kind: OffsetKind,
pub skip_gc: bool,
pub auto_load: bool,
pub should_load: bool,
}Expand description
Configuration options of Doc instance.
Fields§
§client_id: ClientIDGlobally unique 53-bit long client identifier.
guid: UuidA globally unique identifier for this document.
collection_id: Option<String>Associate this document with a collection. This only plays a role if your provider has a concept of collection.
offset_kind: OffsetKindHow to we count offsets and lengths used in text operations.
skip_gc: boolDetermines if transactions commits should try to perform GC-ing of deleted items.
auto_load: boolIf a subdocument, automatically load document. If this is a subdocument, remote peers will load the document as well automatically.
should_load: boolWhether the document should be synced by the provider now. This is toggled to true when you call ydoc.load()