bunny_api/user.rs
1//! Types and API functions related to users.
2
3use serde::{Deserialize, Serialize};
4
5/// A User as returned by the Bunny.net API.
6#[derive(Debug, Clone, Deserialize, Serialize)]
7#[serde(rename_all = "PascalCase")]
8pub struct User {
9 /// The user's name.
10 pub name: Option<String>,
11 /// TODO: Not sure what this is yet
12 pub external_id: Option<String>,
13 /// TODO: Not sure what this is yet
14 pub alias: Option<String>,
15 /// Whether the user has verified their email address.
16 pub verified: bool,
17 /// TODO: Not sure what this is yet
18 pub signature: Option<String>,
19 /// TODO: Not sure what this is yet
20 pub role: Option<String>,
21 /// URL to the user's profile photo.
22 pub photo_url: Option<String>,
23}