Skip to main content

Module convert

Module convert 

Source
Expand description

DTO conversion traits for TeaLeaf documents

This module provides the ToTeaLeaf and FromTeaLeaf traits for converting between Rust types and TeaLeaf Values, along with automatic schema collection.

Enums§

ConvertError
Errors that occur during DTO-to-TeaLeaf conversion

Traits§

FromTeaLeaf
Convert a TeaLeaf Value back into a Rust type.
NotU8
Marker trait to exclude u8 from generic Vec<T> impl. Vec<u8> has its own specialization mapping to Value::Bytes.
ToTeaLeaf
Convert a Rust type into a TeaLeaf Value and collect associated schemas.
ToTeaLeafExt
Extension trait providing convenience methods on types implementing ToTeaLeaf.