Crate baserow_rs

Source
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§

api
error
filter
mapper

Structs§

Baserow
Main client for interacting with the Baserow API
BaserowTable
Represents a table in Baserow
ConfigBuilder
Builder for creating Configuration instances
Configuration
Configuration for the Baserow client
TableField
Represents a field in a Baserow table

Enums§

OrderDirection
Specifies the sort direction for table queries