/*
 * Artifact Keeper API
 *
 * Enterprise artifact registry supporting 45+ package formats.
 *
 * The version of the OpenAPI document: 1.2.1
 * 
 * Generated by: https://openapi-generator.tech
 */

use crate::models;
use serde::{Deserialize, Serialize};

/// CveStatus : CVE status for tracking.
/// CVE status for tracking.
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum CveStatus {
    #[serde(rename = "open")]
    Open,
    #[serde(rename = "fixed")]
    Fixed,
    #[serde(rename = "acknowledged")]
    Acknowledged,
    #[serde(rename = "false_positive")]
    FalsePositive,

}

impl std::fmt::Display for CveStatus {
    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
        match self {
            Self::Open => write!(f, "open"),
            Self::Fixed => write!(f, "fixed"),
            Self::Acknowledged => write!(f, "acknowledged"),
            Self::FalsePositive => write!(f, "false_positive"),
        }
    }
}

impl Default for CveStatus {
    fn default() -> CveStatus {
        Self::Open
    }
}

