Expand description
Rust SDK for the Asana API.
This crate provides a strongly-typed client for interacting with the Asana REST API.
§Authentication
The client authenticates using a Personal Access Token (PAT) via the
ASANA_TOKEN environment variable.
§Example
use asanaclient::Client;
let client = Client::from_env()?;
// List workspaces
let workspaces = client.workspaces().list().await?;
for workspace in workspaces {
println!("{}: {}", workspace.gid, workspace.name);
}Re-exports§
pub use api::FavoritesData;pub use api::FetchFavoritesOptions;pub use api::PortfolioWithItems;pub use api::ProjectWithContext;pub use api::TaskContextOptions;pub use api::TaskWithContext;pub use types::CustomFieldValue;pub use types::EnumOption;pub use types::Event;pub use types::EventChange;pub use types::EventsResponse;pub use types::EventsSyncReset;pub use types::FavoriteItem;pub use types::Gid;pub use types::Job;pub use types::Portfolio;pub use types::Project;pub use types::ProjectTemplate;pub use types::ResourceRef;pub use types::Section;pub use types::StatusColor;pub use types::Story;pub use types::Tag;pub use types::Task;pub use types::User;pub use types::Workspace;
Modules§
Structs§
- Client
- Client for interacting with the Asana API.
Enums§
- Error
- Errors that can occur when using the Asana client.
Type Aliases§
- Result
- Result type alias using the crate’s error type.