Function field [src]

Serialize a field. Equivalent to calling fieldPrefix followed by value.

Prototype

pub fn field( self: *Tuple, val: anytype, options: ValueOptions, ) Error!void

Parameters

self: *Tupleoptions: ValueOptions

Possible Errors

WriteFailed Error

See the Writer implementation for detailed diagnostics.

Source

pub fn field( self: *Tuple, val: anytype, options: ValueOptions, ) Error!void { try self.container.field(null, val, options); }