Skip to main content

Columns

Derive Macro Columns 

Source
#[derive(Columns)]
{
    // Attributes available to this derive:
    #[squire]
}
Available on crate feature derive only.
Expand description

Derive macro for implementing the Columns trait.

ยงAttributes

  • #[squire(skip)] - Skip this field when fetching columns
  • #[squire(borrow)] - Fetch the field as Borrowed for zero-copy access
  • #[squire(fetch_with = custom_function)] - Use a custom fetch function
  • #[squire(index = 0)] - Use a specific column index
  • #[squire(rename = other_name)] - Use a different field name for column lookup
  • #[squire(result)] - Unwrap a Result returned by the fetch expression