surrealpatch/tests/common/format.rs

15 lines
206 B
Rust
Raw Normal View History

use std::string::ToString;
#[derive(Debug, Copy, Clone)]
pub enum Format {
Json,
}
impl ToString for Format {
fn to_string(&self) -> String {
match self {
Self::Json => "json".to_owned(),
}
}
}