Macro feldera_types::serialize_struct
source · macro_rules! serialize_struct { ($struct:ident($($arg:tt $(: $bound:tt)?),*)[$num_fields:expr]{$($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.