pub struct ParsedForeignKey {
pub name: Option<String>,
pub columns: Vec<String>,
pub table_to: String,
pub columns_to: Vec<String>,
pub on_delete: Option<String>,
pub on_update: Option<String>,
}Available on crate feature
std only.Expand description
Parsed foreign key constraint from CREATE TABLE SQL
Fields§
§name: Option<String>Constraint name (if explicitly named)
columns: Vec<String>Source columns
table_to: StringReferenced table
columns_to: Vec<String>Referenced columns
on_delete: Option<String>ON DELETE action
on_update: Option<String>ON UPDATE action
Trait Implementations§
Source§impl Clone for ParsedForeignKey
impl Clone for ParsedForeignKey
Source§fn clone(&self) -> ParsedForeignKey
fn clone(&self) -> ParsedForeignKey
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 moreAuto Trait Implementations§
impl Freeze for ParsedForeignKey
impl RefUnwindSafe for ParsedForeignKey
impl Send for ParsedForeignKey
impl Sync for ParsedForeignKey
impl Unpin for ParsedForeignKey
impl UnsafeUnpin for ParsedForeignKey
impl UnwindSafe for ParsedForeignKey
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