pub enum OrmType {
Diesel,
SeaOrm,
}
Expand description
Supported ORM frameworks for code generation.
Each ORM generates different code structures optimized for their respective ecosystems:
- Diesel: Mature, compile-time SQL safety, macro-heavy approach
- Sea-ORM: Async-first, runtime SQL building, entity relationships
Variants§
Diesel
Generates Diesel table schemas, Queryable structs, and Insertable structs. Best for applications needing maximum compile-time safety and performance.
SeaOrm
Generates Sea-ORM Entity models, ActiveModel structs, and migration files. Best for async applications with complex relationships and runtime flexibility.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for OrmType
impl<'de> Deserialize<'de> for OrmType
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
impl Eq for OrmType
impl StructuralPartialEq for OrmType
Auto Trait Implementations§
impl Freeze for OrmType
impl RefUnwindSafe for OrmType
impl Send for OrmType
impl Sync for OrmType
impl Unpin for OrmType
impl UnwindSafe for OrmType
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.