macro_rules! serialize_struct {
($struct:ident($($arg:tt $(: $bound:tt)?),*)[$num_fields:expr_2021]{$($field_name:ident[$column_name:tt]: $type:ty),* }) => { ... };
}Expand description
Generate SerializeWithContext implementation parameterized by context
type for a struct.
ยงArguments
$struct- name of the struct type.$arg- type arguments.$bound- optional trait bound for type argument$arg.$num_fields- the number of struct fields.$field_name- field name.$type- field type.