#[non_exhaustive]pub struct ForeignKeysInfo {
pub id: i64,
pub seq: i64,
pub table: String,
pub from: Vec<String>,
pub to: Vec<String>,
pub on_update: ForeignKeyAction,
pub on_delete: ForeignKeyAction,
pub match: MatchAction,
}Available on crate features
def and sqlite only.Expand description
Indexes the foreign keys
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.id: i64§seq: i64§table: String§from: Vec<String>§to: Vec<String>§on_update: ForeignKeyAction§on_delete: ForeignKeyAction§match: MatchActionTrait Implementations§
Source§impl Clone for ForeignKeysInfo
impl Clone for ForeignKeysInfo
Source§fn clone(&self) -> ForeignKeysInfo
fn clone(&self) -> ForeignKeysInfo
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ForeignKeysInfo
impl Debug for ForeignKeysInfo
Source§impl Default for ForeignKeysInfo
impl Default for ForeignKeysInfo
Source§fn default() -> ForeignKeysInfo
fn default() -> ForeignKeysInfo
Returns the “default value” for a type. Read more
Source§impl From<SqlxRow> for ForeignKeysInfo
impl From<SqlxRow> for ForeignKeysInfo
Source§impl PartialEq for ForeignKeysInfo
impl PartialEq for ForeignKeysInfo
Source§fn eq(&self, other: &ForeignKeysInfo) -> bool
fn eq(&self, other: &ForeignKeysInfo) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ForeignKeysInfo
Auto Trait Implementations§
impl Freeze for ForeignKeysInfo
impl RefUnwindSafe for ForeignKeysInfo
impl Send for ForeignKeysInfo
impl Sync for ForeignKeysInfo
impl Unpin for ForeignKeysInfo
impl UnsafeUnpin for ForeignKeysInfo
impl UnwindSafe for ForeignKeysInfo
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