Skip to main content

contract

Attribute Macro contract 

Source
#[contract]
Expand description

Mark a Rust DTO as a Phoenix input, resource, page, or shared contract.

The attribute is intentionally representation-neutral. The Vite contract exporter reads the Rust declaration and applies Serde’s wire rules.