Expand description
A Rust client for the Baserow API
This crate provides a strongly-typed client for interacting with Baserow’s REST API. It supports authentication, table operations, file uploads, and more.
§Example
use baserow_rs::{ConfigBuilder, Baserow, BaserowTableOperations, api::client::BaserowClient};
use std::collections::HashMap;
use serde_json::Value;
#[tokio::main]
async fn main() {
// Create a configuration
let config = ConfigBuilder::new()
.base_url("https://api.baserow.io")
.api_key("your-api-key")
.build();
// Initialize the client
let baserow = Baserow::with_configuration(config);
// Get a table reference
let table = baserow.table_by_id(1234);
// Create a record
let mut data = HashMap::new();
data.insert("Name".to_string(), Value::String("Test".to_string()));
let result = table.create_one(data, None).await.unwrap();
println!("Created record: {:?}", result);
}
Re-exports§
pub use api::table_operations::BaserowTableOperations;
Modules§
Structs§
- Main client for interacting with the Baserow API
- Represents a table in Baserow
- Builder for creating Configuration instances
- Configuration for the Baserow client
- Represents a field in a Baserow table
Enums§
- Specifies the sort direction for table queries