6 lines
148 B
Rust
6 lines
148 B
Rust
|
#[derive(Debug, thiserror::Error)]
|
||
|
#[error("missing field '{0}'")]
|
||
|
pub struct FieldErr(pub &'static str);
|
||
|
|
||
|
pub type Field<T> = Result<T, FieldErr>;
|