zino_derive

Derive Macro DecodeRow

Source
#[derive(DecodeRow)]
{
    // Attributes available to this derive:
    #[schema]
}
Expand description

Derives the DecodeRow trait.

ยงAttributes on struct fields

  • #[schema(ignore)]: The ignore annotation is used to skip a particular field such that it does not need to be decoded.

  • #[schema(write_only)]: The write_only annotation is used to indicate that the column is write-only and therefore does not need to be decoded.