Rust
Response type for paginated waitlist user lists
WaitlistResponse
pub struct WaitlistResponse { pub data: Vec<WaitlistUser>, pub has_more: bool, }
use wacht::api::users::*; // Fetch waitlist users let options = ListWaitlistOptions { page: Some(1), per_page: Some(100), }; let response = fetch_waitlist(Some(options)).await?; println!("Found {} users on waitlist", response.data.len()); if response.has_more { println!("More waitlist users available"); } // Process waitlist entries for user in response.data { println!("Waitlist user: {} (joined: {})", user.email, user.created_at); }