Skip to main content

Crate rtdb_typed

Crate rtdb_typed 

Source
Expand description

Typed Serde data access for Firebase Realtime Database.

rtdb-typed is intentionally a thin layer over rtdb_rs. The underlying crate owns Firebase REST transport, authentication, query construction, and SSE behavior; this crate adds conversion between Firebase JSON and Rust application models.

Collection methods use FirebaseCollection for Firebase object maps. A missing collection (null) becomes an empty collection through TypedClient::get_collection, while TypedClient::get_optional_collection preserves the distinction as None. Query methods provide the same choices through TypedQuery::send_collection and TypedQuery::send_optional.

Re-exports§

pub use rtdb_rs;

Structs§

FirebaseCollection
A Firebase object-map collection with a stable typed API.
PushResult
The stable result of creating a Firebase child with a push key.
TypedClient
Strongly typed wrapper around rtdb_rs::RtdbClient.
TypedPatch
A partial Firebase update that preserves the changed JSON object.
TypedQuery
A typed wrapper around rtdb_rs::GetBuilder.

Enums§

TypedError
TypedEvent
A result from a Firebase realtime stream.