Inttegro Rust SDK
The Inttegro Rust SDK is the official typed, asynchronous client for server-side Rust applications. Resource methods return domain values while the HTTP conversation stays inside the client.
Developer preview
The crate is not published on crates.io yet. Pin the exact Git revision below; the guide will move to the registry crate after its first release.
Install
[dependencies]
inttegro = { git = "https://github.com/zebodotdev/inttegro-sdk-rust", rev = "240db861209c75c6665bbac7abc680fe27198d14" }
Create a client
use inttegro::{Client, LookupOrderRequest};
let client = Client::new(std::env::var("INTTEGRO_API_KEY")?)?;
let order = client.orders().lookup(&LookupOrderRequest {
order_id: "order_...".into(),
}).await?;
println!("{}", order.id);
Observability and error reporting
Use Client::builder to pass application-owned implementations of Telemetry
and ErrorReporter:
use std::sync::Arc;
let client = Client::builder(api_key)
.telemetry(Arc::new(telemetry))
.error_reporter(Arc::new(error_reporter))
.build()?;
The hooks receive safe lifecycle metadata without API keys, bodies, resource identifiers, or raw error messages. No error report is constructed when an error reporter is not configured.