Yu-zh/data/derive does not have a README file

    DeriveError

    type DeriveError

    A problem with the attributes, as opposed to a parse error. Carries a location prefix so the message reads like a compiler diagnostic.

    Case

    type Case

    Field

    type Field

    Payload

    type Payload

    Which of serde's four variant forms this case maps onto.

    Shape

    type Shape

    Which of the data model's struct forms a type maps onto.

    The two degenerate forms are separated out for the same reason serde separates them: a struct wrapping exactly one value is a wrapper, not a one-element tuple, and a struct with nothing in it carries no more information than unit. Both have their own Serializer methods, whose defaults widen to the general form, so a format that draws no distinction still writes what TupleStruct and Record would have written.

    Target

    type Target

    A type marked with #data.derive(...).