Overview

The WaitlistResponse struct represents the response returned when fetching users on the waitlist.

Definition

pub struct WaitlistResponse {
    pub data: Vec<WaitlistUser>,
    pub has_more: bool,
}

Fields

data
Vec<WaitlistUser>
required
A vector containing the waitlist users for the current page.
has_more
bool
required
Indicates whether there are more waitlist users available beyond the current page.

Usage Example

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);
}

See Also