maps-service/validation/api/src/lib.rs

21 lines
394 B
Rust
Raw Normal View History

mod context;
#[cfg(feature="internal")]
pub mod internal;
//lazy reexport
pub type ReqwestError=reqwest::Error;
#[derive(Debug)]
2024-12-07 03:36:10 +00:00
pub enum Error{
ParseError(url::ParseError),
Reqwest(reqwest::Error),
2024-12-14 08:15:05 +00:00
JSON(serde_json::Error),
}
2024-12-07 03:36:10 +00:00
impl std::fmt::Display for Error{
fn fmt(&self,f:&mut std::fmt::Formatter<'_>)->std::fmt::Result{
write!(f,"{self:?}")
}
}
2024-12-07 03:36:10 +00:00
impl std::error::Error for Error{}