pub struct ForeignKeyRef {Show 13 fields
pub referenced_key: Option<String>,
pub name: Option<String>,
pub object_id: Option<[u8; 16]>,
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_key: Option<String>§name: Option<String>§object_id: Option<[u8; 16]>Durable identity of the catalog constraint object. The engine assigns this when the constraint is published; parsed SQL leaves it unset.
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§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 moreSource§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