pub fn field( self: *Struct, name: []const u8, val: anytype, options: ValueOptions, ) Error!void
Serialize a field. Equivalent to calling fieldPrefix followed by value.
fieldPrefix
value
self: *Struct
name: []const u8
val
options: ValueOptions
641 642 643 644 645 646 647 648
pub fn field( self: *Struct, name: []const u8, val: anytype, options: ValueOptions, ) Error!void { try self.container.field(name, val, options); }
Serialize a field. Equivalent to calling
fieldPrefixfollowed byvalue.