1 2 3 4 5 6 7 8 9 10 11 12
/// Time-based one-time password configuration #[derive(Default, Debug, Serialize, Deserialize, PartialEq, Eq, Clone)] #[serde(tag = "status")] pub enum Totp { /// Disabled #[default] Disabled, /// Waiting for user activation Pending { secret: String }, /// Required on account Enabled { secret: String }, }