pub fn fieldMaxDepth( self: *Struct, name: []const u8, val: anytype, options: ValueOptions, depth: usize, ) DepthError!void
Serialize a field. Equivalent to calling fieldPrefix followed by valueMaxDepth. Returns error.ExceededMaxDepth if depth is exceeded.
fieldPrefix
valueMaxDepth
error.ExceededMaxDepth
depth
self: *Struct
name: []const u8
val
options: ValueOptions
depth: usize
652 653 654 655 656 657 658 659 660
pub fn fieldMaxDepth( self: *Struct, name: []const u8, val: anytype, options: ValueOptions, depth: usize, ) DepthError!void { try self.container.fieldMaxDepth(name, val, options, depth); }
Serialize a field. Equivalent to calling
fieldPrefixfollowed byvalueMaxDepth. Returnserror.ExceededMaxDepthifdepthis exceeded.