Struct sqlite_parser::ForeignKey
source · [−]pub struct ForeignKey {
pub id: i32,
pub table: String,
pub from_column: Vec<Column>,
pub to_column: Vec<Column>,
}Expand description
Represents a foreign key in SQLite
Fields
id: i32The 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: StringThe 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)
Trait Implementations
sourceimpl Clone for ForeignKey
impl Clone for ForeignKey
sourcefn clone(&self) -> ForeignKey
fn clone(&self) -> ForeignKey
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for ForeignKey
impl Debug for ForeignKey
sourceimpl PartialEq<ForeignKey> for ForeignKey
impl PartialEq<ForeignKey> for ForeignKey
sourcefn eq(&self, other: &ForeignKey) -> bool
fn eq(&self, other: &ForeignKey) -> bool
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more