Skip to content

Moshi.Derive API

The Moshi.Derive module provides the @derive macro for automatically implementing traits like Show, Hash, and Eq.

@derive

@derive <expr>

Automatically derive traits for a concrete type. The following traits are supported:

  • PartialEq
  • Hash
  • Tree