#[repr(u8)]pub enum ArchivedSchemaConstraint{
Unique {
fields: Archived<Vec<String>>,
},
Index {
fields: Archived<Vec<String>>,
name: Archived<String>,
},
Check {
expression: Archived<String>,
},
ForeignKey {
field: Archived<String>,
references: Archived<String>,
on_delete: Archived<ReferentialAction>,
},
}Expand description
An archived SchemaConstraint
Variants§
Unique
The archived counterpart of SchemaConstraint::Unique
Fields
§
fields: Archived<Vec<String>>The archived counterpart of SchemaConstraint::Unique::fields
Index
The archived counterpart of SchemaConstraint::Index
Fields
§
fields: Archived<Vec<String>>The archived counterpart of SchemaConstraint::Index::fields
§
name: Archived<String>The archived counterpart of SchemaConstraint::Index::name
Check
The archived counterpart of SchemaConstraint::Check
Fields
§
expression: Archived<String>The archived counterpart of SchemaConstraint::Check::expression
ForeignKey
The archived counterpart of SchemaConstraint::ForeignKey
Fields
§
field: Archived<String>The archived counterpart of SchemaConstraint::ForeignKey::field
§
references: Archived<String>The archived counterpart of SchemaConstraint::ForeignKey::references
§
on_delete: Archived<ReferentialAction>The archived counterpart of SchemaConstraint::ForeignKey::on_delete
Trait Implementations§
Source§impl<__C: ?Sized> CheckBytes<__C> for ArchivedSchemaConstraintwhere
Vec<String>: Archive,
String: Archive,
ReferentialAction: Archive,
Archived<Vec<String>>: CheckBytes<__C>,
Archived<String>: CheckBytes<__C>,
Archived<ReferentialAction>: CheckBytes<__C>,
impl<__C: ?Sized> CheckBytes<__C> for ArchivedSchemaConstraintwhere
Vec<String>: Archive,
String: Archive,
ReferentialAction: Archive,
Archived<Vec<String>>: CheckBytes<__C>,
Archived<String>: CheckBytes<__C>,
Archived<ReferentialAction>: CheckBytes<__C>,
Source§type Error = EnumCheckError<u8>
type Error = EnumCheckError<u8>
The error that may result from checking the type.
Source§unsafe fn check_bytes<'__bytecheck>(
value: *const Self,
context: &mut __C,
) -> Result<&'__bytecheck Self, EnumCheckError<u8>>
unsafe fn check_bytes<'__bytecheck>( value: *const Self, context: &mut __C, ) -> Result<&'__bytecheck Self, EnumCheckError<u8>>
Checks whether the given pointer points to a valid value within the
given context. Read more
Auto Trait Implementations§
impl Freeze for ArchivedSchemaConstraint
impl RefUnwindSafe for ArchivedSchemaConstraint
impl Send for ArchivedSchemaConstraint
impl Sync for ArchivedSchemaConstraint
impl !Unpin for ArchivedSchemaConstraint
impl !UnsafeUnpin for ArchivedSchemaConstraint
impl UnwindSafe for ArchivedSchemaConstraint
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.