bitwarden_api_api/models/
device_verification_request_model.rs1use serde::{Deserialize, Serialize};
12
13use crate::models;
14
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct DeviceVerificationRequestModel {
17 #[serde(
18 rename = "unknownDeviceVerificationEnabled",
19 alias = "UnknownDeviceVerificationEnabled"
20 )]
21 pub unknown_device_verification_enabled: bool,
22}
23
24impl DeviceVerificationRequestModel {
25 pub fn new(unknown_device_verification_enabled: bool) -> DeviceVerificationRequestModel {
26 DeviceVerificationRequestModel {
27 unknown_device_verification_enabled,
28 }
29 }
30}