Skip to main content

Parameters

Derive Macro Parameters 

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

Derive macro for implementing the Parameters trait.

ยงAttributes

  • #[squire(skip)] - Skip this field when binding parameters
  • #[squire(borrow)] - Wrap the field in Borrowed for zero-copy binding
  • #[squire(bind_with = custom_function)] - Use a custom binding function
  • #[squire(index = 1)] - Use a specific parameter index
  • #[squire(rename = other_name)] - Use a different field name for binding