Function field [src]
Serialize a field. Equivalent to calling fieldPrefix followed by value.
Prototype
pub fn field( self: *Struct, name: []const u8, val: anytype, options: ValueOptions, ) Error!void
Parameters
self: *Struct
name: []const u8
options: ValueOptions
Possible Errors
Source
pub fn field(
self: *Struct,
name: []const u8,
val: anytype,
options: ValueOptions,
) Error!void {
try self.container.field(name, val, options);
}