pub struct DdForeignKey {
pub name: String,
pub referenced_table_schema_name: String,
pub referenced_table_name: String,
pub update_rule: u64,
pub delete_rule: u64,
pub elements: Vec<DdForeignKeyElement>,
}Expand description
Data dictionary foreign key definition.
Fields§
§name: StringConstraint name.
referenced_table_schema_name: StringReferenced table’s schema name.
referenced_table_name: StringReferenced table name.
update_rule: u64ON UPDATE rule (0=NO ACTION, 1=RESTRICT, 2=CASCADE, 3=SET NULL, 4=SET DEFAULT).
delete_rule: u64ON DELETE rule (same codes as update_rule).
elements: Vec<DdForeignKeyElement>Foreign key elements (column mappings).
Trait Implementations§
Source§impl Debug for DdForeignKey
impl Debug for DdForeignKey
Source§impl Default for DdForeignKey
impl Default for DdForeignKey
Source§fn default() -> DdForeignKey
fn default() -> DdForeignKey
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DdForeignKey
impl<'de> Deserialize<'de> for DdForeignKey
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 DdForeignKey
impl RefUnwindSafe for DdForeignKey
impl Send for DdForeignKey
impl Sync for DdForeignKey
impl Unpin for DdForeignKey
impl UnsafeUnpin for DdForeignKey
impl UnwindSafe for DdForeignKey
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> 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