15 lines
206 B
Rust
15 lines
206 B
Rust
|
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(),
|
||
|
}
|
||
|
}
|
||
|
}
|