use serde::Serialize;
#[derive(Debug, Clone, Serialize)]
pub struct Reference<'a> {
table_name: &'a str,
column_name: &'a str,
}
impl<'a> Reference<'a> {
#[inline]
pub fn new(table_name: &'a str, column_name: &'a str) -> Self {
Self {
table_name,
column_name,
}
}
#[inline]
pub fn table_name(&self) -> &'a str {
self.table_name
}
#[inline]
pub fn column_name(&self) -> &'a str {
self.column_name
}
}