1 2 3 4 5 6 7 8 9
//! Error types #[derive(Debug, Clone)] pub enum Error { InvalidUrl, NotShortLink, } pub type Result<T> = std::result::Result<T, Error>;