Skip to main content

bitwarden_api_api/models/
two_factor_web_authn_delete_request_model.rs

1/*
2 * Bitwarden Internal API
3 *
4 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5 *
6 * The version of the OpenAPI document: latest
7 *
8 * Generated by: https://openapi-generator.tech
9 */
10
11use serde::{Deserialize, Serialize};
12
13use crate::models;
14
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct TwoFactorWebAuthnDeleteRequestModel {
17    #[serde(rename = "id", alias = "Id")]
18    pub id: i32,
19    /// User-verification token bound to `UserId + ProviderType`. Minted by the matching GET
20    /// endpoint and replayed on subsequent management calls so the user does not have to
21    /// re-verify.
22    #[serde(rename = "userVerificationToken", alias = "UserVerificationToken")]
23    pub user_verification_token: String,
24}
25
26impl TwoFactorWebAuthnDeleteRequestModel {
27    pub fn new(id: i32, user_verification_token: String) -> TwoFactorWebAuthnDeleteRequestModel {
28        TwoFactorWebAuthnDeleteRequestModel {
29            id,
30            user_verification_token,
31        }
32    }
33}