Expand description
§Screenpipe SDK for Rust
A client library for making HTTP calls to the Screenpipe localhost API.
§Quick Start
use screenpipe_sdk_rs::{ScreenpipeClient, models::SearchRequest};
#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
let client = ScreenpipeClient::new("http://localhost:3030")?;
// Check health
let health = client.health().await?;
println!("Server status: {}", health.status);
// Search content
let search_params = SearchRequest {
q: Some("hello world".to_string()),
limit: Some(10),
..Default::default()
};
let results = client.search(search_params).await?;
println!("Found {} results", results.data.len());
Ok(())
}
Re-exports§
pub use client::ScreenpipeClient;
pub use error::ScreenpipeError;
pub use error::Result;
pub use models::*;
Modules§
Structs§
- Date
Time - ISO 8601 combined date and time with time zone.
- Utc
- The UTC time zone. This is the most efficient time zone when you don’t need the local time. It is also used as an offset (which is also a dummy type).
Enums§
- Value
- Represents any valid JSON value.