package serde_derive

  1. Overview
  2. Docs
Derive-macros for the Serde serialization framework

Install

dune-project
 Dependency

Authors

Maintainers

Sources

serde-0.0.2.tbz
sha256=0766b13f1e9421f98fab8efc5d43657229f3b3bc13ca4722086da634fe076ca4
sha512=1023dcd53c4b69032f466b338e2f0146ee3443b2ec4ce8db2d1f226e1409d81a3da3767ac73e9e047fd61b904a829ff841c26317c8ea050351ba6f70ab4158c4

doc/serde_derive/Serde_derive/Attributes/index.html

Module Serde_derive.AttributesSource

Sourcetype type_attributes = {
  1. rename : string;
  2. variant_tagging_mode : [ `externally_tagged | `internally_tagged of string | `adjacently_tagged of string * string | `untagged ];
  3. rename_all : [ `lowercase | `UPPERCASE | `camelCase | `PascalCase | `snake_case | `SCREAMING_SNAKE_CASE | `kebab_case | `SCREAMING_KEBAB_CASE ] option;
  4. deny_unknown_fields : bool;
}
Sourcetype variant_attributes = {
  1. rename : string;
  2. should_skip : [ `skip_serializing | `skip_deserializing | `always | `never ];
  3. is_catch_all : bool;
}
Sourcetype field_attributes = {
  1. name : string;
  2. presence : [ `required | `optional | `with_default of Ppxlib.Parsetree.expression ];
  3. should_skip : [ `skip_serializing_if of string | `skip_deserializing_if of string | `always | `never ];
}
Sourceval of_record_attributes : Ppxlib.attribute list -> type_attributes
Sourceval pascal_case : String.t -> String.t
Sourceval kebab_case : string -> string
Sourceval of_field_attributes : type_attributes -> Ppxlib.label_declaration -> Ppxlib.label_declaration * field_attributes