Skip to main content

ToRow

Derive Macro ToRow 

Source
#[derive(ToRow)]
{
    // Attributes available to this derive:
    #[postgresql]
    #[pg]
}
Expand description

Derives [postgresql::ToRow] for a struct with named fields.

Fields are encoded in declaration order, matching a binary COPY column list.