Function beginTupleField [src]

Starts a field with a tuple as a value. Returns the tuple.

Prototype

pub fn beginTupleField( self: *Struct, name: []const u8, options: ContainerOptions, ) Error!Tuple

Parameters

self: *Structname: []const u8options: ContainerOptions

Possible Errors

WriteFailed Error

See the Writer implementation for detailed diagnostics.

Source

pub fn beginTupleField( self: *Struct, name: []const u8, options: ContainerOptions, ) Error!Tuple { try self.fieldPrefix(name); return self.container.serializer.beginTuple(options); }