xmlity-derive 0.0.9

Derive proc-macros for xmlity.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Derives the [`SerializationGroup`] trait for a type.

To configure the serialization, use the `#[xgroup(...)]` attribute on the root of the type.

<div style="background:rgba(120,145,255,0.45);padding:0.75em;">
<strong>NOTE:</strong> This trait/attribute is not mutually exclusive with the [Serialize] trait/attributes. This means that you could for example use a struct both as a sequence ([Serialize] with no attribute) and as a group ([SerializationGroup] with the attribute). This does naturally however require no attribute on the root of the type, or the attributes themselves need to implement [Serialize] as well.
</div>

[Serialize]: Serialize
[SerializationGroup]: SerializationGroup

## Configuration

### Serialize a part of an element - `#[xgroup(...)]` on the root of a type

#### Root Options

None for serialization currently.