Skip to main content

Crate bindist

Crate bindist 

Source
Expand description

Rust client for the BinDist Customer API.

The client covers the customer-facing endpoints described in the BinDist Customer API Postman collection: listing applications and versions, browsing the files attached to a version, requesting pre-signed download URLs, and minting public share links.

use bindist::{Client, ListApplicationsOptions};

let client = Client::new("https://api.bindist.eu", "my-api-key")?;

let page = client
    .list_applications(&ListApplicationsOptions {
        limit: Some(20),
        ..Default::default()
    })
    .await?;

for app in &page.items {
    println!("{} ({})", app.name, app.application_id);
}

Structs§

ApiError
Error returned by the API inside a {"success": false, "error": {...}} envelope, or synthesized from a non-2xx response that did not carry one.
Application
Client
Client for the BinDist Customer API.
CreateShareLinkRequest
Request body for [Client::create_share_link].
DownloadInfo
GetDownloadInfoOptions
Options for [Client::get_download_info].
ListApplicationsOptions
Query options for [Client::list_applications].
ListVersionsOptions
Options for [Client::list_versions].
Meta
Response-level metadata (request id, pagination, …).
Page
A paginated slice of items plus the response metadata.
Pagination
Pagination information returned alongside list endpoints.
ShareLink
Version
VersionFile

Enums§

Channel
Release channel. By default the API returns only versions on the production channel; passing a Channel sends the X-Channel header to expose versions published on a non-default channel (for example disabled/pre-release versions via Channel::Test).
Error
FileType
Type of a file in a version.

Type Aliases§

Result
Result type used throughout the crate.