1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
use crate::core::Uri;
#[derive(Debug, Clone, PartialEq)]
pub struct Resource(pub Uri);
impl From<Uri> for Resource {
fn from(u: Uri) -> Self {
Self(u)
}
}
impl ToString for Resource {
fn to_string(&self) -> String {
format!("{}", self.0.to_string())
}
}