Function beginStructField [src]

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

Prototype

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

Parameters

self: *Structname: []const u8options: ContainerOptions

Possible Errors

WriteFailed Error

See the Writer implementation for detailed diagnostics.

Source

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