Expand description
Procedural macros for TypedFlake.
Use them through the typedflake crate, which re-exports and documents
them.
Attribute Macros§
- typedflake
- Declares a Snowflake-style ID type.
Derive Macros§
- Postgres
- Implements
postgres-types’ToSqlandFromSqlfor ani64ID type, stored asBIGINT. - Serde
- Implements Serde’s
SerializeandDeserializefor an ID type. - Serde
Encoded - Implements Serde’s
SerializeandDeserializefor an ID type, using its encoded text. - Sqlx
Postgres - Implements SQLx’s PostgreSQL
Type,Encode,Decode, and array support for ani64ID type, stored asBIGINT. - Typed
Node - Splits the node field of an ID into named parts.