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
//! # GoIAM Rust SDK
//!
//! A lightweight Rust SDK for integrating with Go IAM server.
//! Provides methods for authentication, user management, and resource creation.
//!
//! ## Quick Start
//!
//! ```rust,no_run
//! use goiam::{new_service, Resource, Service};
//!
//! #[tokio::main]
//! async fn main() -> Result<(), Box<dyn std::error::Error>> {
//! let service = new_service(
//! "https://go-iam.example.com".to_string(),
//! "your-client-id".to_string(),
//! "your-secret".to_string(),
//! );
//!
//! // Verify authentication code
//! let token = service.verify("auth-code").await?;
//!
//! // Get user information
//! let user = service.me(&token).await?;
//! println!("User: {} ({})", user.name, user.email);
//!
//! // Create a resource
//! let resource = Resource::new("Resource Name".to_string(), "A sample resource".to_string(), "resource-key".to_string());
//! service.create_resource(&resource, &token).await?;
//!
//! // Delete a resource
//! service.delete_resource("resource-id", &token).await?;
//!
//! Ok(())
//! }
//! ```
pub use ;
pub use Service;
pub use ;
pub use ;