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.
Install
[dependencies]
inttegro = "0.7.0"
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.