pub enum ForeignKeyLocation {
Column(usize),
Table(usize),
}Expand description
Where a relation declares a foreign key.
Variants§
Implementations§
Source§impl ForeignKeyLocation
impl ForeignKeyLocation
pub const fn constraint(self) -> ConstraintLocation
Sourcepub fn derived<'a>(
self,
columns: &'a [ColumnDef],
constraints: &'a TableConstraintSet,
) -> Option<(&'a str, &'a [ReferencedPartitionConstraint])>
pub fn derived<'a>( self, columns: &'a [ColumnDef], constraints: &'a TableConstraintSet, ) -> Option<(&'a str, &'a [ReferencedPartitionConstraint])>
The name and derived constraints of the foreign key at this location.
Sourcepub fn derived_mut<'a>(
self,
columns: &'a mut [ColumnDef],
constraints: &'a mut TableConstraintSet,
) -> Option<&'a mut Vec<ReferencedPartitionConstraint>>
pub fn derived_mut<'a>( self, columns: &'a mut [ColumnDef], constraints: &'a mut TableConstraintSet, ) -> Option<&'a mut Vec<ReferencedPartitionConstraint>>
The derived constraints of the foreign key at this location, for an edit.
Trait Implementations§
Source§impl Clone for ForeignKeyLocation
impl Clone for ForeignKeyLocation
impl Copy for ForeignKeyLocation
Source§impl Debug for ForeignKeyLocation
impl Debug for ForeignKeyLocation
impl Eq for ForeignKeyLocation
Source§impl PartialEq for ForeignKeyLocation
impl PartialEq for ForeignKeyLocation
impl StructuralPartialEq for ForeignKeyLocation
Auto Trait Implementations§
impl Freeze for ForeignKeyLocation
impl RefUnwindSafe for ForeignKeyLocation
impl Send for ForeignKeyLocation
impl Sync for ForeignKeyLocation
impl Unpin for ForeignKeyLocation
impl UnsafeUnpin for ForeignKeyLocation
impl UnwindSafe for ForeignKeyLocation
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more