#sea-orm #options #rules #update #partial #simpler #orphan

defined

A simpler Option type to circumvent orphan rules in sea-orm

5 releases

0.2.5 Aug 25, 2024
0.2.3 Feb 18, 2024
0.2.2 Jan 21, 2024
0.2.1 Jan 20, 2024
0.2.0 Jan 3, 2024

#5 in #simpler

MIT/Apache

16KB
393 lines

defined

Minimal implementation of Option-like type for use in sea-orm. Crate needed to circumvent rust orphan rules for implementation of partial updates in sea-orm.


lib.rs:

A Custom Option Enum with Undefined

Defined is a alternative Option enum value with Defined::Undef value. Defined::Def is defined Defined::Undef is undefined

Dependencies

~7MB
~126K SLoC