SerializationGroup

Derive Macro SerializationGroup 

Source
#[derive(SerializationGroup)]
{
    // Attributes available to this derive:
    #[xelement]
    #[xattribute]
    #[xgroup]
    #[xvalue]
}
Expand description

Derives the SerializationGroup trait for a type.

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

NOTE: 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.

§Configuration

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

§Root Options

None for serialization currently.