pub struct SchemaConstraint {
pub id: u64,
pub name: String,
pub kind: SchemaConstraintKind,
}Expand description
Durable catalog identity for a SQL table constraint.
id and name are assigned once when the constraint is created and are
persisted with the schema. Renaming a table or column updates the bound
columns in kind, but deliberately does not rename the public constraint.
Fields§
§id: u64§name: String§kind: SchemaConstraintKindTrait Implementations§
Source§impl Clone for SchemaConstraint
impl Clone for SchemaConstraint
Source§fn clone(&self) -> SchemaConstraint
fn clone(&self) -> SchemaConstraint
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 SchemaConstraint
impl Debug for SchemaConstraint
impl Eq for SchemaConstraint
Source§impl PartialEq for SchemaConstraint
impl PartialEq for SchemaConstraint
impl StructuralPartialEq for SchemaConstraint
Auto Trait Implementations§
impl Freeze for SchemaConstraint
impl RefUnwindSafe for SchemaConstraint
impl Send for SchemaConstraint
impl Sync for SchemaConstraint
impl Unpin for SchemaConstraint
impl UnsafeUnpin for SchemaConstraint
impl UnwindSafe for SchemaConstraint
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