Expand description
Derive macros for ReifyDB.
This crate provides the #[derive(FromFrame)] macro for ergonomic
deserialization of Frame data into Rust structs.
§Example
ⓘ
use reifydb_type::FromFrame;
#[derive(FromFrame)]
struct User {
id: i64,
name: String,
#[frame(column = "created_at")]
timestamp: i64,
#[frame(optional)]
email: Option<String>,
}
let users: Vec<User> = frame.try_into()?;Derive Macros§
- From
Frame - Derives
FromFramefor a struct, enabling deserialization from a Frame.