bindist 0.1.0

Rust client library for the BinDist Customer API
Documentation
//! 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.
//!
//! ```no_run
//! use bindist::{Client, ListApplicationsOptions};
//!
//! # async fn run() -> bindist::Result<()> {
//! 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);
//! }
//! # Ok(())
//! # }
//! ```

mod client;
mod error;
mod types;

pub use client::{Client, Page};
pub use error::{ApiError, Error, Result};
pub use types::{
    Application, Channel, CreateShareLinkRequest, DownloadInfo, FileType,
    GetDownloadInfoOptions, ListApplicationsOptions, ListVersionsOptions, Meta,
    Pagination, ShareLink, Version, VersionFile,
};