origin_asset/lib.rs
1//! # Origin Asset
2//!
3//! Rust client for the Origin Asset Gateway service.
4//!
5//! ## Quick Start
6//!
7//! ```rust,no_run
8//! use origin_asset::AssetClient;
9//!
10//! #[tokio::main]
11//! async fn main() -> origin_asset::Result<()> {
12//! let client = AssetClient::new("your-api-key");
13//!
14//! let image = client.generate_image("a fire sword", None).await?;
15//! println!("Image URL: {:?}", image.output_url);
16//!
17//! let healthy = client.health().await?;
18//! println!("Healthy: {healthy}");
19//!
20//! Ok(())
21//! }
22//! ```
23
24pub mod client;
25pub mod error;
26pub mod transport;
27pub mod types;
28
29pub use client::{AssetClient, AssetClientBuilder, DEFAULT_BASE_URL};
30pub use error::{OriginError, Result};
31pub use types::*;