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: *Structname: []const u8options: ValueOptionsdepth: usize

Possible Errors

ExceededMaxDepth
WriteFailed Error

See the Writer implementation for detailed diagnostics.

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); }