> Aztec.nr API reference, v6.0.0 (mainnet and testnet). Index: https://docs.aztec.network/aztec-nr-api/v6.0.0/llms.txt

# Function derive_serialize_if_not_implemented

Module: `noir_aztec::macros::utils`

```rust
pub comptime fn derive_serialize_if_not_implemented(s: TypeDefinition) -> Quoted
```

Generates a quote that implements `Serialize` for a given struct `s`. If the struct already implements `Serialize`, we return an empty quote.
