Skip to main content

Crate pylon_derive

Crate pylon_derive 

Source
Expand description

#[derive(Queryable)] — populates a struct or enum from a query result, so a caller writes client.query::<Row, _>(pyql, &args) instead of walking a generic Value by hand.

Deliberately conventional in its surface (the usual derive name, the usual rename/json/crate_path attributes under a pylon namespace), so a project arriving from another Rust client keeps its row structs as-is. The one semantic difference is spelled out on Queryable: fields are matched by name rather than by shape position, because Pylon’s decoded objects are name-keyed.

Derive Macros§

Queryable