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
BinDistCustomer API. - Create
Share Link Request - Request body for [
Client::create_share_link]. - Download
Info - GetDownload
Info Options - Options for [
Client::get_download_info]. - List
Applications Options - Query options for [
Client::list_applications]. - List
Versions Options - 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.
- Share
Link - Version
- Version
File
Enums§
- Channel
- Release channel. By default the API returns only versions on the
production channel; passing a
Channelsends theX-Channelheader to expose versions published on a non-default channel (for example disabled/pre-release versions viaChannel::Test). - Error
- File
Type - Type of a file in a version.
Type Aliases§
- Result
- Result type used throughout the crate.