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: *Struct
name: []const u8
options: ContainerOptions
Possible Errors
Source
pub fn beginStructField(
self: *Struct,
name: []const u8,
options: ContainerOptions,
) Error!Struct {
try self.fieldPrefix(name);
return self.container.serializer.beginStruct(options);
}