pub struct ForeignKey {
pub source_fields: Option<Vec<ColumnIdent>>,
pub target: TableIdent,
pub target_fields: Option<Vec<ColumnIdent>>,
pub on_delete: OnDelete,
/* private fields */
}Fields§
§source_fields: Option<Vec<ColumnIdent>>§target: TableIdent§target_fields: Option<Vec<ColumnIdent>>§on_delete: OnDeleteImplementations§
Source§impl ForeignKey
impl ForeignKey
pub fn new( name: Option<DbForeignKey>, source_fields: Option<Vec<ColumnIdent>>, target: TableIdent, target_fields: Option<Vec<ColumnIdent>>, on_delete: OnDelete, ) -> Self
pub fn clone_for_mixin(&self) -> Self
Trait Implementations§
Source§impl Debug for ForeignKey
impl Debug for ForeignKey
Source§impl HasDefaultDbName for ForeignKey
impl HasDefaultDbName for ForeignKey
type Kind = ForeignKeyKind
fn default_db(&self) -> Option<DbIdent<Self::Kind>>
Auto Trait Implementations§
impl Freeze for ForeignKey
impl RefUnwindSafe for ForeignKey
impl Send for ForeignKey
impl Sync for ForeignKey
impl Unpin for ForeignKey
impl UnwindSafe for ForeignKey
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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