Function fieldMaxDepth [src]
Serialize a field. Equivalent to calling fieldPrefix followed by valueMaxDepth.
Returns error.ExceededMaxDepth if depth is exceeded.
Prototype
pub fn fieldMaxDepth( self: *Struct, name: []const u8, val: anytype, options: ValueOptions, depth: usize, ) DepthError!void
Parameters
self: *Struct
name: []const u8
options: ValueOptions
depth: usize
Possible Errors
Source
pub fn fieldMaxDepth(
self: *Struct,
name: []const u8,
val: anytype,
options: ValueOptions,
depth: usize,
) DepthError!void {
try self.container.fieldMaxDepth(name, val, options, depth);
}