#[derive(Clone, Debug, PartialEq, Eq)]
pub struct ForeignKey {
pub(crate) name: String,
pub(crate) positions: Vec<usize>,
pub(crate) target_id: u32,
pub(crate) target_positions: Vec<usize>,
}
impl ForeignKey {
#[must_use]
pub fn name(&self) -> &str {
&self.name
}
#[must_use]
pub fn positions(&self) -> &[usize] {
&self.positions
}
#[must_use]
pub fn target_id(&self) -> u32 {
self.target_id
}
#[must_use]
pub fn target_positions(&self) -> &[usize] {
&self.target_positions
}
}