sqruff_lib/core/
enums.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
use std::fmt;

pub enum FormatType {
    Human,
    Json,
    Yaml,
    GithubAnnotation,
    GithubAnnotationNative,
}

impl fmt::Display for FormatType {
    fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
        match self {
            FormatType::Human => write!(f, "human"),
            FormatType::Json => write!(f, "json"),
            FormatType::Yaml => write!(f, "yaml"),
            FormatType::GithubAnnotation => write!(f, "github-annotation"),
            FormatType::GithubAnnotationNative => write!(f, "github-annotation-native"),
        }
    }
}