pub struct ForeignKey {
pub source_table: Arc<Table>,
pub source_columns: Vec<Arc<TableColumn>>,
pub target_table: Arc<Table>,
pub target_columns: Vec<Arc<TableColumn>>,
pub is_zero_one_to_one: bool,
}Fields§
§source_table: Arc<Table>§source_columns: Vec<Arc<TableColumn>>§target_table: Arc<Table>§target_columns: Vec<Arc<TableColumn>>§is_zero_one_to_one: boolImplementations§
Source§impl ForeignKey
impl ForeignKey
pub fn new( source_table: Arc<Table>, source_columns: Vec<Arc<TableColumn>>, target_table: Arc<Table>, target_columns: Vec<Arc<TableColumn>>, ) -> ForeignKey
Trait Implementations§
Source§impl Clone for ForeignKey
impl Clone for ForeignKey
Source§fn clone(&self) -> ForeignKey
fn clone(&self) -> ForeignKey
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ForeignKey
impl RefUnwindSafe for ForeignKey
impl Send for ForeignKey
impl Sync for ForeignKey
impl Unpin for ForeignKey
impl UnwindSafe for ForeignKey
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more