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

defined

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

6 releases

0.3.0 Jan 13, 2025
0.2.5 Aug 25, 2024
0.2.3 Feb 18, 2024
0.2.2 Jan 21, 2024

#6 in #simpler

Download history 4/week @ 2024-10-31 3/week @ 2024-11-07 2/week @ 2024-12-05 4/week @ 2024-12-12 101/week @ 2025-01-09 22/week @ 2025-01-16

123 downloads per month

MIT/Apache

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