orvanta-api 6.5.0

No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
Documentation
/*
 * Orvanta API
 *
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: 6.5.0
 * Contact: contact@orvanta.cloud
 * Generated by: https://openapi-generator.tech
 */

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

/// IssueSeverity : `Error` -- the migration cannot run, `execute` refuses to start. `Warning` -- the migration can run, but the operator should look (e.g. a type-category mismatch Postgres may still successfully cast).
/// `Error` -- the migration cannot run, `execute` refuses to start. `Warning` -- the migration can run, but the operator should look (e.g. a type-category mismatch Postgres may still successfully cast).
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum IssueSeverity {
    #[serde(rename = "Error")]
    Error,
    #[serde(rename = "Warning")]
    Warning,

}

impl std::fmt::Display for IssueSeverity {
    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
        match self {
            Self::Error => write!(f, "Error"),
            Self::Warning => write!(f, "Warning"),
        }
    }
}

impl Default for IssueSeverity {
    fn default() -> IssueSeverity {
        Self::Error
    }
}