Module dittolive_ditto::prelude
source · [−]Expand description
The prelude contains all common imports when using the dittolive
crate.
Re-exports
pub use crate::auth::authenticator::DittoAuthenticator;
pub use crate::auth::login_provider::DittoAuthenticationEventHandler;
pub use crate::disk_usage::DiskUsage;
pub use crate::ditto::builder::DittoBuilder;
pub use crate::ditto::AppId;
pub use crate::ditto::Ditto;
pub use crate::ditto::SiteId;
pub use crate::error::DittoError;
pub use crate::fs::DittoRoot;
pub use crate::fs::PersistentRoot;
pub use crate::fs::TempRoot;
pub use crate::identity;
pub use crate::identity::Identity;
pub use crate::identity::Manual;
pub use crate::identity::OfflinePlayground;
pub use crate::identity::OnlinePlayground;
pub use crate::identity::OnlineWithAuthentication;
pub use crate::observer::Observer;
pub use crate::store::collection::document::DittoDocument;
pub use crate::store::collection::document::DittoMutDocument;
pub use crate::store::collection::document_id::DocumentId;
pub use crate::store::collection::pending_cursor_operation::PendingCursorOperation;
pub use crate::store::collection::pending_id_specific_operation::PendingIdSpecificOperation;
pub use crate::store::collection::Collection;
pub use crate::store::collections::event::CollectionsEvent;
pub use crate::store::collections::pending_collections_operation::CollectionsEventHandler;
pub use crate::store::collections::pending_collections_operation::PendingCollectionsOperation;
pub use crate::store::ditto_attachment::DittoAttachment;
pub use crate::store::ditto_attachment_fetch_event::DittoAttachmentFetchEvent;
pub use crate::store::ditto_attachment_fetcher::DittoAttachmentFetcher;
pub use crate::store::ditto_attachment_token::DittoAttachmentToken;
pub use crate::store::live_query::EventHandler;
pub use crate::store::live_query::LiveQuery;
pub use crate::store::live_query::SingleDocumentEventHandler;
pub use crate::store::timeseries::TimeSeries;
pub use crate::store::Store;
pub use crate::store::WriteStrategy;
pub use crate::subscription::Subscription;
Structs
Represents a CRDT counter that can be upserted as part of a document
or assigned to a property during an update of a document.
Represents a CRDT register that can be upserted as part of a document or
assigned to a property during an update of a document.
Describes the index in a list of documents that a document was
previously found at (
from
) and the index that it can now be found atreceiving callback updates.
Presence
to visualize the mesh.A token returned by
Presence::observe
. Retain this object to continue
receiving callback updates.Provides information about a live query event relating to a single document live query.
A configuration object specifying which network transports Ditto should use
to sync data.
Enums
Describes the different types of event that you can receive when dealing with live queries.