Rust
Response type for paginated workspace lists
WorkspaceListResponse
pub struct WorkspaceListResponse { pub data: Vec<Workspace>, pub has_more: bool, }
Workspace
use wacht::api::workspaces::*; let options = ListWorkspacesOptions { page: Some(1), per_page: Some(20), search: None, organization_id: Some("org_123".to_string()), }; let response = fetch_workspaces(Some(options)).await?; println!("Found {} workspaces", response.data.len()); if response.has_more { println!("More workspaces available on next page"); } for workspace in response.data { println!("Workspace: {} ({})", workspace.name, workspace.id); }