use std::fmt::Display; #[derive(Debug)] 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(()) } }