orvanta_api/models/issue_severity.rs
1/*
2 * Orvanta API
3 *
4 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5 *
6 * The version of the OpenAPI document: 6.5.0
7 * Contact: contact@orvanta.cloud
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// 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).
15/// `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).
16#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
17pub enum IssueSeverity {
18 #[serde(rename = "Error")]
19 Error,
20 #[serde(rename = "Warning")]
21 Warning,
22
23}
24
25impl std::fmt::Display for IssueSeverity {
26 fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
27 match self {
28 Self::Error => write!(f, "Error"),
29 Self::Warning => write!(f, "Warning"),
30 }
31 }
32}
33
34impl Default for IssueSeverity {
35 fn default() -> IssueSeverity {
36 Self::Error
37 }
38}
39