sqruff_lib/core/
enums.rs

1use std::fmt;
2
3pub enum FormatType {
4    Human,
5    Json,
6    Yaml,
7    GithubAnnotation,
8    GithubAnnotationNative,
9}
10
11impl fmt::Display for FormatType {
12    fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
13        match self {
14            FormatType::Human => write!(f, "human"),
15            FormatType::Json => write!(f, "json"),
16            FormatType::Yaml => write!(f, "yaml"),
17            FormatType::GithubAnnotation => write!(f, "github-annotation"),
18            FormatType::GithubAnnotationNative => write!(f, "github-annotation-native"),
19        }
20    }
21}