pub struct ForeignKeyRef {Show 15 fields
pub referenced_index: Option<[u8; 16]>,
pub referenced_key: Option<String>,
pub name: Option<String>,
pub object_id: Option<[u8; 16]>,
pub catalog_identity: Option<ConstraintCatalogIdentity>,
pub table: String,
pub column: Option<String>,
pub on_update: ForeignKeyAction,
pub on_delete: ForeignKeyAction,
pub match_type: ForeignKeyMatch,
pub enforced: bool,
pub validated: bool,
pub deferrable: bool,
pub initially_deferred: bool,
pub period: bool,
}Expand description
REFERENCES table[(column)] reference target.
Fields§
§referenced_index: Option<[u8; 16]>Incarnation of the selected unique index; names are retained only for diagnostics and legacy conversion.
referenced_key: Option<String>§name: Option<String>§object_id: Option<[u8; 16]>Logical foreign-key identity shared by a partition family for enforcement and deferred events.
catalog_identity: Option<ConstraintCatalogIdentity>Independent catalog row lifetime and OID, preserved through renames and distinct in each partition.
table: String§column: Option<String>§on_update: ForeignKeyAction§on_delete: ForeignKeyAction§match_type: ForeignKeyMatch§enforced: bool§validated: bool§deferrable: bool§initially_deferred: bool§period: boolREFERENCES table (..., PERIOD column) temporal coverage semantics.
Trait Implementations§
Source§impl Clone for ForeignKeyRef
impl Clone for ForeignKeyRef
Source§impl Debug for ForeignKeyRef
impl Debug for ForeignKeyRef
Source§impl<'de> Deserialize<'de> for ForeignKeyRef
impl<'de> Deserialize<'de> for ForeignKeyRef
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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