Skip to main content

Module client

Module client 

Source
Expand description

Ergonomic client for the Mesa API.

Provides a directory-style navigation pattern:

use mesa_dev::MesaClient;
use futures::TryStreamExt;

let client = MesaClient::builder().build();
let repos: Vec<_> = client.org("my-org").repos().list(None).try_collect().await?;
let branches: Vec<_> = client.org("my-org").repos().at("my-repo").branches().list(None).try_collect().await?;

Structsยง

AnalyticsClient
Client for analytics and AI attribution (/{org}/{repo}/analytics).
ApiKeysClient
Client for API key management (/{org}/api-keys).
BranchesClient
Client for branch operations (/{org}/{repo}/branches).
CommitsClient
Client for commit operations (/{org}/{repo}/commits).
ContentClient
Client for content operations (/{org}/{repo}/content).
DiffClient
Client for diff operations (/{org}/{repo}/diff).
LfsClient
Client for LFS operations (/{org}/{repo}/lfs).
MesaClient
Top-level Mesa API client.
MesaClientBuilder
Builder for configuring and constructing a MesaClient.
OrgClient
Client scoped to an organization (/{org}).
RepoClient
Client scoped to a specific repository (/{org}/{repo}).
ReposClient
Client for listing and creating repositories (/{org}/repos).
SyncClient
Client for sync operations (/{org}/{repo}/sync).
WebhooksClient
Client for webhook operations (/{org}/{repo}/webhooks).