-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpassage_user.rs
29 lines (28 loc) · 1.12 KB
/
passage_user.rs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
use serde::{Deserialize, Serialize};
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
pub struct PassageUser {
#[serde(rename = "created_at")]
pub created_at: String,
/// The external ID of the user. Only set if the user was created in a Flex app.
#[serde(rename = "external_id")]
pub external_id: String,
#[serde(rename = "id")]
pub id: String,
#[serde(rename = "last_login_at")]
pub last_login_at: String,
#[serde(rename = "login_count")]
pub login_count: i32,
#[serde(rename = "status")]
pub status: crate::openapi::models::UserStatus,
#[serde(rename = "updated_at")]
pub updated_at: String,
#[serde(rename = "user_metadata", deserialize_with = "Option::deserialize")]
pub user_metadata: Option<serde_json::Value>,
#[serde(rename = "webauthn")]
pub webauthn: bool,
#[serde(rename = "webauthn_devices")]
pub webauthn_devices: Vec<crate::openapi::models::WebAuthnDevices>,
/// List of credential types that have been used for authentication
#[serde(rename = "webauthn_types")]
pub webauthn_types: Vec<crate::openapi::models::WebAuthnType>,
}