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

defined

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

4 releases

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

#9 in #sea-orm

MIT/Apache

15KB
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

~10–19MB
~229K SLoC