bitwarden_auth/login/api/response/
trusted_device_user_decryption_option_api_response.rs1use bitwarden_crypto::{EncString, UnsignedSharedKey};
2use serde::{Deserialize, Serialize};
3
4#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
7pub(crate) struct TrustedDeviceUserDecryptionOptionApiResponse {
8 #[serde(rename = "HasAdminApproval")]
10 pub has_admin_approval: bool,
11
12 #[serde(rename = "HasLoginApprovingDevice")]
14 pub has_login_approving_device: bool,
15
16 #[serde(rename = "HasManageResetPasswordPermission")]
18 pub has_manage_reset_password_permission: bool,
19
20 #[serde(rename = "IsTdeOffboarding")]
22 pub is_tde_offboarding: bool,
23
24 #[serde(
26 rename = "EncryptedPrivateKey",
27 skip_serializing_if = "Option::is_none"
28 )]
29 pub encrypted_private_key: Option<EncString>,
30
31 #[serde(rename = "EncryptedUserKey", skip_serializing_if = "Option::is_none")]
33 pub encrypted_user_key: Option<UnsignedSharedKey>,
34}