pub struct ConstraintNames<'a> {
pub columns: &'a [ColumnDef],
pub checks: &'a [TableCheck],
pub foreign_keys: &'a [ForeignKey],
pub keys: &'a [TableKeyConstraint],
}Fields§
§columns: &'a [ColumnDef]§checks: &'a [TableCheck]§foreign_keys: &'a [ForeignKey]§keys: &'a [TableKeyConstraint]Implementations§
Source§impl<'a> ConstraintNames<'a>
impl<'a> ConstraintNames<'a>
pub fn from_definition( columns: &'a [ColumnDef], constraints: &'a TableConstraintSet, ) -> Self
pub fn entries(self) -> impl Iterator<Item = NamedConstraint<'a>>
Trait Implementations§
Source§impl<'a> Clone for ConstraintNames<'a>
impl<'a> Clone for ConstraintNames<'a>
impl<'a> Copy for ConstraintNames<'a>
Auto Trait Implementations§
impl<'a> Freeze for ConstraintNames<'a>
impl<'a> RefUnwindSafe for ConstraintNames<'a>
impl<'a> Send for ConstraintNames<'a>
impl<'a> Sync for ConstraintNames<'a>
impl<'a> Unpin for ConstraintNames<'a>
impl<'a> UnsafeUnpin for ConstraintNames<'a>
impl<'a> UnwindSafe for ConstraintNames<'a>
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> 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