use serde::{Deserialize, Serialize};
#[derive(Debug, Deserialize, Serialize)]
pub struct Relation {
#[serde(alias = "type")]
pub relation_type: String,
#[serde(alias = "target-type")]
pub target_type: Option<String>,
pub url: Option<Url>,
pub ended: Option<bool>,
}
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct Url {
pub id: String,
pub resource: String,
}