pub enum SchemaConstraintResolver{
Unique {
fields: Resolver<Vec<String>>,
},
Index {
fields: Resolver<Vec<String>>,
name: Resolver<String>,
},
Check {
expression: Resolver<String>,
},
ForeignKey {
field: Resolver<String>,
references: Resolver<String>,
on_delete: Resolver<ReferentialAction>,
},
}Expand description
The resolver for an archived SchemaConstraint
Variants§
Unique
The resolver for SchemaConstraint::Unique
Fields
§
fields: Resolver<Vec<String>>The resolver for SchemaConstraint::Unique::fields
Index
The resolver for SchemaConstraint::Index
Fields
§
fields: Resolver<Vec<String>>The resolver for SchemaConstraint::Index::fields
§
name: Resolver<String>The resolver for SchemaConstraint::Index::name
Check
The resolver for SchemaConstraint::Check
Fields
§
expression: Resolver<String>The resolver for SchemaConstraint::Check::expression
ForeignKey
The resolver for SchemaConstraint::ForeignKey
Fields
§
field: Resolver<String>The resolver for SchemaConstraint::ForeignKey::field
§
references: Resolver<String>The resolver for SchemaConstraint::ForeignKey::references
§
on_delete: Resolver<ReferentialAction>The resolver for SchemaConstraint::ForeignKey::on_delete
Auto Trait Implementations§
impl Freeze for SchemaConstraintResolver
impl RefUnwindSafe for SchemaConstraintResolver
impl Send for SchemaConstraintResolver
impl Sync for SchemaConstraintResolver
impl Unpin for SchemaConstraintResolver
impl UnsafeUnpin for SchemaConstraintResolver
impl UnwindSafe for SchemaConstraintResolver
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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<F, W, T, D> Deserialize<With<T, W>, D> for F
impl<F, W, T, D> Deserialize<With<T, W>, D> for F
Source§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
Source§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Gets the layout of the type.