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 Relationship(pub Uri);
impl From<Uri> for Relationship {
fn from(u: Uri) -> Self {
Self(u)
}
}
impl ToString for Relationship {
fn to_string(&self) -> String {
format!("{}", self.0.to_string())
}
}