1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
/*
* 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
}
}