bitwarden_core/platform/secret_verification_request.rs
1use serde::{Deserialize, Serialize};
2
3/// Request to verify a user's secret.
4#[derive(Serialize, Deserialize, Debug)]
5#[serde(rename_all = "camelCase", deny_unknown_fields)]
6pub struct SecretVerificationRequest {
7 /// The user's master password to use for user verification. If supplied, this will be used for
8 /// verification purposes.
9 pub master_password: Option<String>,
10 /// Alternate user verification method through OTP. This is provided for users who have no
11 /// master password due to use of Customer Managed Encryption. Must be present and valid if
12 /// master_password is absent.
13 pub otp: Option<String>,
14}