#[derive(Default, Clone)]
pub struct Mapping {
x: Option<String>,
y: Option<String>,
z: Option<String>,
r: Option<String>,
}
impl Mapping {
pub fn merge(self, other: Mapping) -> Self {
Self {
x: other.x.or(self.x),
y: other.y.or(self.y),
z: other.z.or(self.z),
r: other.r.or(self.r),
}
}
}