pub struct ForeignKeyRef {
pub name: &'static str,
pub name_explicit: bool,
pub target_table: &'static str,
pub target_schema: &'static str,
pub source_columns: &'static [&'static str],
pub target_columns: &'static [&'static str],
pub on_delete: Option<&'static str>,
pub on_update: Option<&'static str>,
pub deferrable: bool,
pub initially_deferred: bool,
}Expand description
Foreign key reference as a const Copy struct.
Fields§
§name: &'static str§name_explicit: bool§target_table: &'static str§target_schema: &'static str§source_columns: &'static [&'static str]§target_columns: &'static [&'static str]§on_delete: Option<&'static str>§on_update: Option<&'static str>§deferrable: bool§initially_deferred: boolTrait Implementations§
Source§impl Clone for ForeignKeyRef
impl Clone for ForeignKeyRef
Source§fn clone(&self) -> ForeignKeyRef
fn clone(&self) -> ForeignKeyRef
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 moreimpl Copy for ForeignKeyRef
Source§impl Debug for ForeignKeyRef
impl Debug for ForeignKeyRef
impl Eq for ForeignKeyRef
Source§impl PartialEq for ForeignKeyRef
impl PartialEq for ForeignKeyRef
impl StructuralPartialEq for ForeignKeyRef
Auto Trait Implementations§
impl Freeze for ForeignKeyRef
impl RefUnwindSafe for ForeignKeyRef
impl Send for ForeignKeyRef
impl Sync for ForeignKeyRef
impl Unpin for ForeignKeyRef
impl UnsafeUnpin for ForeignKeyRef
impl UnwindSafe for ForeignKeyRef
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