macro_rules! attr_list {
[$($attr:ty),*] => { ... };
(@nest) => { ... };
(@nest $head:ty $(, $tail:ty)*) => { ... };
}Expand description
Builds the nested tuple type used to represent a list of
AttributeDefinition types.
attr_list![A, B, C] expands to the right-nested tuple
(A, (B, (C, ()))), which is the representation expected by
AttributeList and the
DynamoDBItem::AdditionalAttributes
associated type.
You rarely need to invoke this macro directly — dynamodb_item! calls it
internally. It is exposed for use in manual DynamoDBItem
implementations where you need to spell out the AdditionalAttributes type
explicitly.
§Syntax
attr_list![AttrType1, AttrType2, ...]An empty list attr_list![] expands to ().
§Examples
use dynamodb_facade::attr_list;
// Equivalent to (ItemType, (Expiration, ()))
type MyAttrs = attr_list![ItemType, Expiration];