rtdb_typed/lib.rs
1//! Typed Serde data access for Firebase Realtime Database.
2//!
3//! `rtdb-typed` is intentionally a thin layer over [`rtdb_rs`]. The underlying
4//! crate owns Firebase REST transport, authentication, query construction, and
5//! SSE behavior; this crate adds conversion between Firebase JSON and Rust
6//! application models.
7//!
8//! Collection methods use [`FirebaseCollection`] for Firebase object maps. A
9//! missing collection (`null`) becomes an empty collection through
10//! [`TypedClient::get_collection`], while
11//! [`TypedClient::get_optional_collection`] preserves the distinction as
12//! `None`. Query methods provide the same choices through
13//! [`TypedQuery::send_collection`] and [`TypedQuery::send_optional`].
14
15mod client;
16mod error;
17
18pub use client::{FirebaseCollection, PushResult, TypedClient, TypedEvent, TypedPatch, TypedQuery};
19pub use error::TypedError;
20
21pub use rtdb_rs;