#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

#4 in #simpler

Download history 127/week @ 2024-02-15 30/week @ 2024-02-22 4/week @ 2024-02-29 4/week @ 2024-03-28 8/week @ 2024-04-04

56 downloads per month

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–18MB
~229K SLoC