1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
//! Types and API functions related to users.

use serde::{Deserialize, Serialize};

/// A User as returned by the Bunny.net API.
#[derive(Debug, Clone, Deserialize, Serialize)]
#[serde(rename_all = "PascalCase")]
pub struct User {
    /// The user's name.
    pub name: Option<String>,
    /// TODO: Not sure what this is yet
    pub external_id: Option<String>,
    /// TODO: Not sure what this is yet
    pub alias: Option<String>,
    /// Whether the user has verified their email address.
    pub verified: bool,
    /// TODO: Not sure what this is yet
    pub signature: Option<String>,
    /// TODO: Not sure what this is yet
    pub role: Option<String>,
    /// URL to the user's profile photo.
    pub photo_url: Option<String>,
}