[][src]Function elastic_types_derive_internals::date_format::expand_derive

pub fn expand_derive(
    crate_root: Tokens,
    input: &MacroInput
) -> Result<Vec<Tokens>, DeriveDateFormatError>

Derive DateFormat for the given input.

The input must satisfy the following rules:

  • It must be a unit struct.
  • It must have an #[elastic(date_format="<value>")] attribute.