pub struct PostgresForeignKey {
pub name: String,
pub columns: Vec<PostgresForeignKeyColumn>,
pub referenced_schema: Option<String>,
pub referenced_table: String,
pub referenced_columns: Vec<PostgresForeignKeyReferencedColumn>,
pub update_action: ReferenceAction,
pub delete_action: ReferenceAction,
pub comment: Option<String>,
pub is_enforced: bool,
pub constraint_definition: Option<String>,
pub object_id: ObjectId,
}Fields§
§name: String§columns: Vec<PostgresForeignKeyColumn>§referenced_schema: Option<String>§referenced_table: String§referenced_columns: Vec<PostgresForeignKeyReferencedColumn>§update_action: ReferenceAction§delete_action: ReferenceAction§comment: Option<String>§is_enforced: bool§constraint_definition: Option<String>For temporal foreign keys, stores the constraint definition from pg_get_constraintdef().
object_id: ObjectIdImplementations§
Source§impl PostgresForeignKey
impl PostgresForeignKey
pub fn get_create_statement( &self, table: &PostgresTable, schema: &PostgresSchema, identifier_quoter: &IdentifierQuoter, ) -> String
Trait Implementations§
Source§impl Clone for PostgresForeignKey
impl Clone for PostgresForeignKey
Source§fn clone(&self) -> PostgresForeignKey
fn clone(&self) -> PostgresForeignKey
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 PostgresForeignKey
impl Debug for PostgresForeignKey
Source§impl Default for PostgresForeignKey
impl Default for PostgresForeignKey
Source§impl<'de> Deserialize<'de> for PostgresForeignKey
impl<'de> Deserialize<'de> for PostgresForeignKey
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
impl Eq for PostgresForeignKey
Source§impl From<PostgresForeignKey> for PostgresConstraint
impl From<PostgresForeignKey> for PostgresConstraint
Source§fn from(value: PostgresForeignKey) -> Self
fn from(value: PostgresForeignKey) -> Self
Converts to this type from the input type.
Source§impl Ord for PostgresForeignKey
impl Ord for PostgresForeignKey
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for PostgresForeignKey
impl PartialEq for PostgresForeignKey
Source§impl PartialOrd for PostgresForeignKey
impl PartialOrd for PostgresForeignKey
Source§impl Serialize for PostgresForeignKey
impl Serialize for PostgresForeignKey
impl StructuralPartialEq for PostgresForeignKey
Auto Trait Implementations§
impl Freeze for PostgresForeignKey
impl RefUnwindSafe for PostgresForeignKey
impl Send for PostgresForeignKey
impl Sync for PostgresForeignKey
impl Unpin for PostgresForeignKey
impl UnsafeUnpin for PostgresForeignKey
impl UnwindSafe for PostgresForeignKey
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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>,
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