bitwarden-core 3.0.0

Internal crate for the bitwarden crate. Do not use.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use serde::{Deserialize, Serialize};

/// Request to verify a user's secret.
#[derive(Serialize, Deserialize, Debug)]
#[serde(rename_all = "camelCase", deny_unknown_fields)]
pub struct SecretVerificationRequest {
    /// The user's master password to use for user verification. If supplied, this will be used for
    /// verification purposes.
    pub master_password: Option<String>,
    /// Alternate user verification method through OTP. This is provided for users who have no
    /// master password due to use of Customer Managed Encryption. Must be present and valid if
    /// master_password is absent.
    pub otp: Option<String>,
}