Struct sqlite_parser::ForeignKey
source · pub struct ForeignKey {
pub id: i32,
pub table: String,
pub from_column: Vec<Column>,
pub to_column: Vec<Column>,
pub on_update: OnUpdateAndDelete,
pub on_delete: OnUpdateAndDelete,
}
Expand description
Represents a foreign key in SQLite
Fields§
§id: i32
The id of the foreign key Starts with 0 and is incremented for each unique foreign key This means compound foreign key shares the same id
table: String
The table it refers to
from_column: Vec<Column>
The columns it refers from (own table)
to_column: Vec<Column>
The columns it refers to (referring to table)
on_update: OnUpdateAndDelete
§on_delete: OnUpdateAndDelete
Trait Implementations§
source§impl Clone for ForeignKey
impl Clone for ForeignKey
source§fn clone(&self) -> ForeignKey
fn clone(&self) -> ForeignKey
Returns a copy 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 moresource§impl Debug for ForeignKey
impl Debug for ForeignKey
source§impl PartialEq for ForeignKey
impl PartialEq for ForeignKey
source§fn eq(&self, other: &ForeignKey) -> bool
fn eq(&self, other: &ForeignKey) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for ForeignKey
impl StructuralEq for ForeignKey
impl StructuralPartialEq for ForeignKey
Auto Trait Implementations§
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more