bitwarden_api_api/models/
assertion_options.rsuse serde::{Deserialize, Serialize};
use serde_with::serde_as;
use crate::models;
#[serde_as]
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct AssertionOptions {
#[serde(rename = "status", skip_serializing_if = "Option::is_none")]
pub status: Option<String>,
#[serde(rename = "errorMessage", skip_serializing_if = "Option::is_none")]
pub error_message: Option<String>,
#[serde_as(as = "Option<serde_with::base64::Base64>")]
#[serde(rename = "challenge", skip_serializing_if = "Option::is_none")]
pub challenge: Option<Vec<u8>>,
#[serde(rename = "timeout", skip_serializing_if = "Option::is_none")]
pub timeout: Option<i32>,
#[serde(rename = "rpId", skip_serializing_if = "Option::is_none")]
pub rp_id: Option<String>,
#[serde(rename = "allowCredentials", skip_serializing_if = "Option::is_none")]
pub allow_credentials: Option<Vec<models::PublicKeyCredentialDescriptor>>,
#[serde(rename = "userVerification", skip_serializing_if = "Option::is_none")]
pub user_verification: Option<models::UserVerificationRequirement>,
#[serde(rename = "extensions", skip_serializing_if = "Option::is_none")]
pub extensions: Option<Box<models::AuthenticationExtensionsClientInputs>>,
}
impl AssertionOptions {
pub fn new() -> AssertionOptions {
AssertionOptions {
status: None,
error_message: None,
challenge: None,
timeout: None,
rp_id: None,
allow_credentials: None,
user_verification: None,
extensions: None,
}
}
}