pub enum FieldAttribute {
Id,
Unique,
Default(DefaultValue),
UpdatedAt,
Relation(RelationAttribute),
Map(String),
DbType(String, Vec<String>),
}Expand description
Attributes on a field (e.g., @id, @default(uuid())).
Variants§
Id
Unique
Default(DefaultValue)
UpdatedAt
Relation(RelationAttribute)
Map(String)
DbType(String, Vec<String>)
Trait Implementations§
Source§impl Clone for FieldAttribute
impl Clone for FieldAttribute
Source§fn clone(&self) -> FieldAttribute
fn clone(&self) -> FieldAttribute
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for FieldAttribute
impl RefUnwindSafe for FieldAttribute
impl Send for FieldAttribute
impl Sync for FieldAttribute
impl Unpin for FieldAttribute
impl UnsafeUnpin for FieldAttribute
impl UnwindSafe for FieldAttribute
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