/*
* Zernio API
*
* API reference for Zernio. Authenticate with a Bearer API key. Base URL: https://zernio.com/api Versioning and deprecation: all endpoints are versioned in the URL path (current version: /v1). Breaking changes only ship in a new path version; existing versions keep working. Deprecated operations are marked 'deprecated: true' in this spec and announced in the changelog (https://zernio.com/changelog) before removal. Errors: every 4xx/5xx response is application/json with a machine-readable 'code' and a human-readable 'error' message (see the ErrorResponse schema).
*
* The version of the OpenAPI document: 1.62.0
* Contact: support@zernio.com
* Generated by: https://openapi-generator.tech
*/
use crate::models;
use serde::{Deserialize, Serialize};
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct PreflightSmsRegistration200Response {
#[serde(rename = "composed", skip_serializing_if = "Option::is_none")]
pub composed: Option<Box<models::PreflightSmsRegistration200ResponseComposed>>,
#[serde(rename = "advisories", skip_serializing_if = "Option::is_none")]
pub advisories: Option<Vec<models::PreflightSmsRegistration200ResponseAdvisoriesInner>>,
#[serde(rename = "verdict", skip_serializing_if = "Option::is_none")]
pub verdict: Option<Verdict>,
/// True when the AI portion of the check could not run; advisories then contain only deterministic findings.
#[serde(rename = "aiUnavailable", skip_serializing_if = "Option::is_none")]
pub ai_unavailable: Option<bool>,
}
impl PreflightSmsRegistration200Response {
pub fn new() -> PreflightSmsRegistration200Response {
PreflightSmsRegistration200Response {
composed: None,
advisories: None,
verdict: None,
ai_unavailable: None,
}
}
}
///
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum Verdict {
#[serde(rename = "pass")]
Pass,
#[serde(rename = "warn")]
Warn,
#[serde(rename = "fail")]
Fail,
#[serde(rename = "unreviewed")]
Unreviewed,
}
impl Default for Verdict {
fn default() -> Verdict {
Self::Pass
}
}