1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
//! Rust SDK for the Asana API.
//!
//! This crate provides a strongly-typed client for interacting with the
//! [Asana REST API](https://developers.asana.com/reference/rest-api-reference).
//!
//! # Authentication
//!
//! The client authenticates using a Personal Access Token (PAT) via the
//! `ASANA_TOKEN` environment variable.
//!
//! # Example
//!
//! ```rust,no_run
//! use asanaclient::Client;
//!
//! # async fn example() -> Result<(), asanaclient::Error> {
//! let client = Client::from_env()?;
//!
//! // List workspaces
//! let workspaces = client.workspaces().list().await?;
//!
//! for workspace in workspaces {
//! println!("{}: {}", workspace.gid, workspace.name);
//! }
//! # Ok(())
//! # }
//! ```
// Re-export the main client and error types.
pub use Client;
pub use Error;
// Re-export commonly used API types.
pub use ;
// Re-export core data types.
pub use ;
/// Result type alias using the crate's error type.
pub type Result<T> = Result;