---
title: "Rust SDK"
description: "Install and use the official server-side Inttegro SDK for Rust."
canonical: "https://studio.inttegro.com/sdks/rust"
format: inttegro-machine-docs/v1
language: "TypeScript"
sdk_version: "v12.0.0"
reader_profile: optional
reader_manifest: "https://studio.inttegro.com/machine/typescript/readers/index.json"
reader_identification: "Optional: declare your client only if known and your current-session capabilities; use reader_manifest for supplemental recommendations."
preamble_estimated_tokens: 549
model_token_report: "https://studio.inttegro.com/machine/token-report.json"
preamble_questions: 5
preamble_source: "general"
recommended_mcp_tools: ["get_integration_guide","check_integration_readiness"]
estimated_tokens: 1104
token_estimate_method: "utf8_bytes_divided_by_4"
---

## Machine preamble

**Summary:** Install and use the official server-side Inttegro SDK for Rust. This TypeScript representation uses the selected SDK's native names wherever Studio has a verified mapping.

### Five questions

#### Q1. When should the reader use Rust SDK?

Use this SDK guide when the selected runtime or framework matches the application being built.

#### Q2. What is authoritative on this page?

Use this page for orientation; follow its canonical SDK, guide, API, or MCP links for exact contracts.

#### Q3. What page-specific constraint matters most?

Use the current documented SDK version and native public API; do not invent members from JSON names or another language.

#### Q4. Can Inttegro MCP materially help with this task?

Yes, when the reader has an authenticated MCP connection and the task needs live context, guided planning, or a supported operation. The strongest matches are `get_integration_guide`, `check_integration_readiness`; their exact roles and boundaries are listed below.

#### Q5. How should the reader verify the answer and continue?

Install the documented version, compile or type-check the smallest example, run it against a disposable application, and verify the resulting resource through its canonical lookup. Continue with [Choose an API resource](https://studio.inttegro.com/machine/typescript/api.md) when those concerns enter scope.

### Recommended MCP assistance

Use these through an authenticated Inttegro MCP connection. This document remains the contract source.

- [`get_integration_guide`](https://studio.inttegro.com/machine/typescript/inttegro-mcp/tools.md#get_integration_guide) — read-only integration guidance. Returns a focused implementation sequence and canonical Studio links for authentication, checkout, orders, catalog, messaging, idempotency, or testing.
- [`check_integration_readiness`](https://studio.inttegro.com/machine/typescript/inttegro-mcp/tools.md#check_integration_readiness) — read-only integration guidance. Audits platform secret storage, server-runtime compatibility, idempotency, errors, state verification, checkout returns, and messaging consent without receiving source code or credentials.

## Document content

# 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

```toml
[dependencies]
inttegro = "0.7.0"
```

## Create a client

```rust
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`:

```rust
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.

## Continue

- [Browse the generated API reference](https://docs.rs/inttegro/0.7.0/inttegro/)
- [Browse the typed API source](https://github.com/inttegro/inttegro-sdk-rust/tree/master/src)
- [Browse the repository](https://github.com/inttegro/inttegro-sdk-rust)
- [Choose an API resource](https://studio.inttegro.com/machine/typescript/api.md)
