flabk/src/model.rs

13 lines
196 B
Rust
Raw Normal View History

2022-09-11 16:52:37 +01:00
use serde::Serialize;
#[derive(Clone, Serialize)]
pub struct Error<'a> {
pub error: &'a str,
}
impl<'a> Error<'a> {
pub fn error(error: &'a str) -> Self {
Self { error }
}
}