Function fieldPrefix [src]

Print a field prefix. This prints any necessary commas, the field name (escaped if necessary) and whitespace as configured. Useful if you want to serialize the field value yourself.

Prototype

pub fn fieldPrefix(self: *Struct, name: []const u8) Error!void

Parameters

self: *Structname: []const u8

Possible Errors

WriteFailed Error

See the Writer implementation for detailed diagnostics.

Source

pub fn fieldPrefix(self: *Struct, name: []const u8) Error!void { try self.container.fieldPrefix(name); }