pub struct EntityContract {
pub entity_name: String,
pub fields: Vec<FieldContract>,
pub identity_kind: Option<String>,
pub identity_key: Option<String>,
pub indexes: Vec<IndexContract>,
pub checks: Vec<CheckContract>,
}Fields§
§entity_name: String§fields: Vec<FieldContract>§identity_kind: Option<String>§identity_key: Option<String>§indexes: Vec<IndexContract>Declarative secondary indexes (reconciled by name against pg_indexes at deploy). Covers the Prisma/Drizzle index surface: composite, unique, partial, functional, method, operator class, sort/nulls order.
checks: Vec<CheckContract>Declarative table-level CHECK constraints (reconciled by tag against
pg_constraint at deploy, exactly like indexes). Arbitrary boolean SQL
expressions: multi-column, conditional, format. Covers the Drizzle
check() / Atlas check {} surface.
Trait Implementations§
Source§impl Clone for EntityContract
impl Clone for EntityContract
Source§fn clone(&self) -> EntityContract
fn clone(&self) -> EntityContract
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 EntityContract
impl Debug for EntityContract
Source§impl<'de> Deserialize<'de> for EntityContract
impl<'de> Deserialize<'de> for EntityContract
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
Auto Trait Implementations§
impl Freeze for EntityContract
impl RefUnwindSafe for EntityContract
impl Send for EntityContract
impl Sync for EntityContract
impl Unpin for EntityContract
impl UnsafeUnpin for EntityContract
impl UnwindSafe for EntityContract
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