fieldmasker_derive 0.0.1

Proc-macro derive for fieldmasker::MaskSpec
Documentation
  • Coverage
  • 100%
    2 out of 2 items documented0 out of 1 items with examples
  • Size
  • Source code size: 14.4 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 150.3 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 5s Average build duration of successful builds.
  • all releases: 5s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • Repository
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • punkeel

Derive macro for fieldmasker::MaskSpec.

Features

  • Structs with named fields: builds an Object schema using field names, honoring Serde field attributes.
  • Newtype tuple structs: delegate to the inner type’s schema.
  • Other tuple structs, enums, and unions: treated as scalar.

Serde attributes honored

  • #[serde(rename = "...")]
  • #[serde(rename(serialize = "..."))] (preferred when present)
  • #[serde(rename_all = "...")] on the container
  • #[serde(skip)] / #[serde(skip_serializing)]

Unsupported (for now)

  • #[serde(flatten)] — emits a compile error. Support can be added once the core crate exposes object-schema accessors at runtime.