use std::{fmt::Display, str::FromStr}; #[derive(Debug, Clone)] pub struct Uri { pub content: String, } impl Display for Uri { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { write!(f, "{}", self.content)?; Ok(()) } } impl FromStr for Uri { type Err = anyhow::Error; fn from_str(s: &str) -> Result { Ok(Self { content: s.to_string(), }) } }