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

22 lines
387 B
Rust
Raw Normal View History

mod context;
#[cfg(feature="internal")]
pub mod internal;
pub mod external;
//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-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{}