bitwarden_api_api/models/
auth_request_update_request_model.rsuse serde::{Deserialize, Serialize};
use crate::models;
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct AuthRequestUpdateRequestModel {
#[serde(rename = "key", skip_serializing_if = "Option::is_none")]
pub key: Option<String>,
#[serde(rename = "masterPasswordHash", skip_serializing_if = "Option::is_none")]
pub master_password_hash: Option<String>,
#[serde(rename = "deviceIdentifier")]
pub device_identifier: String,
#[serde(rename = "requestApproved")]
pub request_approved: bool,
}
impl AuthRequestUpdateRequestModel {
pub fn new(device_identifier: String, request_approved: bool) -> AuthRequestUpdateRequestModel {
AuthRequestUpdateRequestModel {
key: None,
master_password_hash: None,
device_identifier,
request_approved,
}
}
}