Expand description
A very simple library to implement the Firebase real-time database in your code with the best performance
Instalation
Add this to your Cargo.toml
:
[dependencies]
firerust = { version = "1.0.0" }
Examples
A basic example of data fetch:
use firerust::FirebaseClient;
use serde_json::Value;
use std::error::Error;
fn main() -> Result<(), Box<dyn Error>> {
let client = FirebaseClient::new("https://docs-examples.firebaseio.com/")?;
let reference = client.reference("/");
reference.set(serde_json::json!({
"message": "Hello, world!",
}))?;
println!("{:?}", reference.get::<Value>());
Ok(())
}
Modules
TLS Connector for Firebase client
Structs
Connects and authenticates client to Firebase
A reference to a Firebase real-time database